Adding log.gd

This commit is contained in:
Dan Baker 2024-05-02 09:36:31 +01:00
parent eb32d6614e
commit 4522259397
547 changed files with 46844 additions and 0 deletions

View file

@ -0,0 +1,29 @@
# This test verifys only the scanner functionallity
# to find all given tests by pattern 'func test_<testname>():'
extends GdUnitTestSuite
func test_example():
assert_that("This is a example message").has_length(25)
assert_that("This is a example message").starts_with("This is a ex")
func test_b():
pass
# test name starts with same name e.g. test_b vs test_b2
func test_b2():
pass
# test scanning success with invalid formatting
func test_b21 ( ) :
pass
# finally verify all tests are found
func after():
assert_array(get_children())\
.extract("get_name")\
.contains_exactly(["test_example", "test_b", "test_b2", "test_b21"])