chore: add GUT test framework
This commit is contained in:
15
addons/gut/test/unit/test_gut_control.gd
Normal file
15
addons/gut/test/unit/test_gut_control.gd
Normal file
@@ -0,0 +1,15 @@
|
||||
extends GutInternalTester
|
||||
|
||||
var GutControl = load('res://addons/gut/gui/GutControl.tscn')
|
||||
|
||||
func test_free_no_orphans():
|
||||
var gc = GutControl.instantiate()
|
||||
gc.free()
|
||||
assert_no_new_orphans()
|
||||
|
||||
|
||||
func test_in_tree_free_no_orphans():
|
||||
var gc = GutControl.instantiate()
|
||||
add_child(gc)
|
||||
gc.free()
|
||||
assert_no_new_orphans()
|
||||
Reference in New Issue
Block a user