-- _test_optional_args
-- expected error messages for edge cases:
-- missing non-optional parameter `b` (#1)
-- 1 excessive argument is given: [I64(6)]
-- the test is successful when and only when these errors are shown
ERROR: missing non-optional parameter `b` (#1)
at: OptionalArgs :: opt_sum (test/src/lib.rs:195)
ERROR: an excessive argument is given: I64(6)
at: OptionalArgs :: opt_sum (test/src/lib.rs:195)
After:
-- expected error messages for edge cases:
-- missing non-optional parameter `b` (#1)
-- 1 excessive argument is given: [I64(6)]
-- the test is successful when and only when these errors are shown
ERROR: missing non-optional parameter `b` (#1)
at: OptionalArgs :: opt_sum (test/src/lib.rs:173)
ERROR: 6 excessive arguments are given: [I64(1), I64(2), I64(3), I64(4), I64(5), I64(6)]
at: OptionalArgs :: opt_sum (test/src/lib.rs:173)
I wonder if there's any way this test can be automated. grep in the CI script might be an option?
From the relevant parts of the test suite:
Before commit https://github.com/godot-rust/godot-rust/commit/619e7d46b7615ae4ed77d7debef7ed28cd537fda (expected):
After:
I wonder if there's any way this test can be automated.
grep
in the CI script might be an option?