Add smoke test with Tween to check for issues with handling RefCounted

This commit is contained in:
David Snopek
2025-10-28 11:37:00 -05:00
parent 6c05f1f0b1
commit 618ee44a23
4 changed files with 12 additions and 0 deletions

View File

@@ -225,6 +225,9 @@ func _ready():
assert_equal(new_tilemap.tile_set, new_tileset)
new_tilemap.queue_free()
# Creates a Tween and checks that it's valid. Improper refcount handling will crash now or at shutdown.
assert_equal(example.test_tween_smoke_test(), true)
# Test variant call.
var test_obj = TestClass.new()
assert_equal(example.test_variant_call(test_obj), "hello world")