GDScript: Replace assert() with Utils.check() in tests

This commit is contained in:
Danil Alexeev
2024-08-28 17:41:52 +03:00
parent f648de1a83
commit c1322d41e6
32 changed files with 275 additions and 347 deletions
@@ -18,8 +18,8 @@ func test():
test_instance.number = 42
var test_sub = TestSub.new()
assert(test_sub.number == 25) # From Test.
assert(test_sub.other_string == "bye") # From TestSub.
Utils.check(test_sub.number == 25) # From Test.
Utils.check(test_sub.other_string == "bye") # From TestSub.
var _test_constructor = TestConstructor.new()
_test_constructor = TestConstructor.new(500)