diff options
| author | David Snopek <dsnopek@gmail.com> | 2024-03-05 11:11:29 -0600 |
|---|---|---|
| committer | David Snopek <dsnopek@gmail.com> | 2024-04-08 11:12:40 -0500 |
| commit | 37542dc2ec1e98fbe93e2daa8f11e7fb5428cb0e (patch) | |
| tree | 98db9a68e7b954ac48b72021e974840e1825861a /test | |
| parent | e55b792fea513b4c1f13939ca00c28e06b8d4454 (diff) | |
| download | redot-cpp-37542dc2ec1e98fbe93e2daa8f11e7fb5428cb0e.tar.gz | |
Correctly handle `Object *` arguments that were encoded as `nullptr`
Diffstat (limited to 'test')
| -rw-r--r-- | test/project/main.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/project/main.gd b/test/project/main.gd index d2cbd26..14658c3 100644 --- a/test/project/main.gd +++ b/test/project/main.gd @@ -184,6 +184,10 @@ func _ready(): control.queue_free() sprite.queue_free() + # Test that passing null for objects works as expected too. + var example_null : Example = null + assert_equal(example.test_object_cast_to_node(example_null), false) + # Test conversions to and from Variant. assert_equal(example.test_variant_vector2i_conversion(Vector2i(1, 1)), Vector2i(1, 1)) assert_equal(example.test_variant_vector2i_conversion(Vector2(1.0, 1.0)), Vector2i(1, 1)) |
