summaryrefslogtreecommitdiff
path: root/Tests/ComponentTests/ParserTests/test_CommandParser.gd
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ComponentTests/ParserTests/test_CommandParser.gd')
-rw-r--r--Tests/ComponentTests/ParserTests/test_CommandParser.gd9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/ComponentTests/ParserTests/test_CommandParser.gd b/Tests/ComponentTests/ParserTests/test_CommandParser.gd
new file mode 100644
index 0000000..bdb14a6
--- /dev/null
+++ b/Tests/ComponentTests/ParserTests/test_CommandParser.gd
@@ -0,0 +1,9 @@
+extends CommandParserTestBase
+
+const Command = preload("res://Scripts/Command.cs")
+
+func parse(input: String) -> Command:
+ return autofree(_instance.TryParse(input))
+
+func test_parsing_the_empty_string_returns_null():
+ assert_null(parse(''))