summaryrefslogtreecommitdiffstats
path: root/test/project
diff options
context:
space:
mode:
authorDavid Snopek <dsnopek@gmail.com>2024-05-07 12:54:35 -0500
committerDavid Snopek <dsnopek@gmail.com>2024-05-10 19:51:31 -0500
commit88df025aa0ab92ed176f91dd835c004fa26f0ed0 (patch)
tree61c4a3c454986d3723a095ff46f91f0f3eecafb0 /test/project
parent85172dad1bd3cfed8cf8b4c2826f34cfe211af05 (diff)
downloadredot-cpp-88df025aa0ab92ed176f91dd835c004fa26f0ed0.tar.gz
Clean up instance bindings for engine singletons to prevent crash
Diffstat (limited to 'test/project')
-rw-r--r--test/project/main.gd3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/project/main.gd b/test/project/main.gd
index 0cfba19..665582f 100644
--- a/test/project/main.gd
+++ b/test/project/main.gd
@@ -256,6 +256,9 @@ func _ready():
assert_equal(example.test_virtual_implemented_in_script("Virtual", 939), "Implemented")
assert_equal(custom_signal_emitted, ["Virtual", 939])
+ # Test that we can access an engine singleton.
+ assert_equal(example.test_use_engine_singleton(), OS.get_name())
+
# Test that notifications happen on both parent and child classes.
var example_child = $ExampleChild
assert_equal(example_child.get_value1(), 11)