Parameterized testing with typed arrays #561
-
When I add a type to an Array in the test method arguments, the test passes. result: FAILED (This is the correct result)func test_a(items: Array, test_parameters := [[[1]]]) -> void:
assert_bool(true).is_equal(false) result: PASSED (This is not the correct result)func test_b(items: Array[int], test_parameters := [[[1]]]) -> void:
assert_bool(true).is_equal(false) What should I do? Environment Details
|
Beta Was this translation helpful? Give feedback.
Answered by
MikeSchulze
Aug 31, 2024
Replies: 1 comment 1 reply
-
It is an issue with the typed array, when you check the errors you can see:
As a result, the test is not executed at all, but this is not recognized as an internal error and ends with a success. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
MikeSchulze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It is an issue with the typed array, when you check the errors you can see: