GD-383: Parameterized test with comment in signature fails
Closed this issue · 1 comments
Krigu commented
The used GdUnit4 version
4.2.3 (Pre Release/Master branch)
The used Godot version
v4.2.1.stable
Operating System
Manjaro
Describe the bug
When using parameterized tests and there is a comment the test input set, the test fails with the internal error "The resolved test_case names has invalid size!"
This behaviour is new in the version 4.2.3. The same scenario worked in the previous version 4.2.2
Steps to Reproduce
Modified example from the docs:
extends GdUnitTestSuite
func test_parameterized_int_values(
a: int,
b :int,
c :int,
expected :int,
test_parameters := [
[1, 2, 3, 6],
[3, 4, 5, 12],
[6, 7, 8, 21] # a very helpful comment
]
):
assert_that(a+b+c).is_equal(expected)
Minimal reproduction project
No response
MikeSchulze commented
Thanks for reporting this bug.