mirror of
https://github.com/godotengine/godot-cpp.git
synced 2026-01-01 05:48:37 +03:00
Add smoke test with Tween to check for issues with handling RefCounted
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user