BessereTests/addons/besseretests/examples/test_inside_tree.gd

9 lines
177 B
GDScript

extends BessereTestsTest
func test_boolean() -> void:
if is_inside_tree(): rok()
else: rerror()
func test_existance() -> void:
if get_tree() == null: rerror()
else: rok()