MikeSchulze / gdUnit4

A Godot Unit Test Framework. Support for GDScript and C# unit testing
MIT License
565 stars 30 forks source link

GD-563: Parameterized test not executed when using typed arrays end ends with invalid success state #563

Closed MikeSchulze closed 2 weeks ago

MikeSchulze commented 1 month ago

Discussed in https://github.com/MikeSchulze/gdUnit4/discussions/561

Originally posted by **joshuafolkken** August 31, 2024 When I add a type to an Array in the test method arguments, the test passes. ## result: FAILED (This is the correct result) ```gd func test_a(items: Array, test_parameters := [[[1]]]) -> void: assert_bool(true).is_equal(false) ``` ## result: PASSED (This is not the correct result) ```gd func test_b(items: Array[int], test_parameters := [[[1]]]) -> void: assert_bool(true).is_equal(false) ``` --- What should I do? ## Environment Details - GdUnit4 4.3.4 - Godot 4.3, stable, Typed GDScript - macOS Sonoma 14.6.1