BessereTests/addons/besseretests/examples/test_inside_tree.gd

9 lines
211 B
GDScript

extends BessereTestsTest
func test_boolean() -> void:
if is_inside_tree(): test_status = 0
else: test_status = 2
func test_existance() -> void:
if get_tree() == null: test_status = 2
else: test_status = 0