chore: add GUT test framework

This commit is contained in:
xiaji
2026-05-29 09:16:10 +08:00
parent 5741ba1dc0
commit 07fc763413
808 changed files with 76903 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
#A sample script for illustrating multiple scripts and what it looks like
#when all tests pass.
extends "res://addons/gut/test.gd"
func test_pass_one():
assert_true(true, 'This is true')
func test_pass_two():
assert_eq(1, 1, 'one is one in test two')
func test_fail_one():
assert_true(false, 'false is not true')
func test_fail_two():
assert_eq(3, 1, 'three is not one in test two')
func test_pending_one():
pending('This one is pending')
func test_pending_two():
pending('This is also pending')