MikeSchulze / gdUnit4

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

GD-546: Allow to use the basic assert function un-typed #546

Closed MikeSchulze closed 2 months ago

MikeSchulze commented 2 months ago

Is your feature request related to a problem? Please describe. Actual, we run into a compile error when try to test a Variant vs typed value. assert_that(3).is_equal("3") The assertions are type save and do not allow testing an un-typed function result to an expected typed result.

It is legate to have a function with a Variant return type, so assert_that should not test for type safety

Describe the solution you'd like Improve the assertions to allow using un-typed current values vs expected typed values.

is_null is_not_null is_equal is_not_equal

Describe alternatives you've considered n/a