Skip to content

Commit

Permalink
add unit test class
Browse files Browse the repository at this point in the history
  • Loading branch information
myin142 committed Aug 1, 2023
1 parent 86b29e4 commit af3f5ba
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion godot/project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ config_version=5

config/name="##VAR_GAME_NAME"
run/main_scene="res://src/game.tscn"
config/features=PackedStringArray("4.0")
config/features=PackedStringArray("4.1")
boot_splash/bg_color=Color(0.101961, 0.101961, 0.101961, 1)
config/icon="res://icon.svg"

Expand Down
7 changes: 7 additions & 0 deletions godot/tests/UnitTest.gd
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
class_name UnitTest
extends GutTest

func assert_contains_exact(arr: Array, items: Array):
assert_eq(arr.size(), items.size())
for i in items:
assert_has(arr, i)

0 comments on commit af3f5ba

Please sign in to comment.