home · contact · privacy
Extend basic TUI tests.
authorChristian Heller <c.heller@plomlompom.de>
Wed, 17 Sep 2025 16:09:16 +0000 (18:09 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Wed, 17 Sep 2025 16:09:16 +0000 (18:09 +0200)
test.txt

index 375ab5795a853fb4b10586b38aa916b7c010150a..713096ecb4b3dc1f0e29eeb239dfadf7be25982f 100644 (file)
--- a/test.txt
+++ b/test.txt
@@ -1,3 +1,19 @@
+# BASIC TUI PROMPT TESTS
+
+# nothing should happen on empty command input
+>
+
+# expected complaints on wrong command inputs
+> foo
+0 !# invalid prompt command: not prefixed by /
+> /foo
+0 !# invalid prompt command: /foo unknown
+> /help foo
+0 !# invalid prompt command: /help given argument(s) while none expected
+> /window
+0 !# invalid prompt command: /window too few arguments (given 0, need 1)
+
+# some simple expected command successes
 > /help
 0 # commands available in this window:
 0 #   /connect HOST_PORT [NICKNAME_PW] [REALNAME]
 0 #   /window.prompt.backspace
 0 #   /window.prompt.move_cursor DIRECTION
 0 #   /window.prompt.scroll DIRECTION
-
 > /list
 0 # windows available via /window:
 0 #   0) :start
 
+# should probably not be available at all by explicit prompt writing, but for now this be the expected behavior …
+> /prompt_enter
+0 !# invalid prompt command: /prompt_enter would loop into ourselves
+> /window.history.scroll foo
+> /window.prompt.backspace
+> /window.prompt.move_cursor foo
+> /window.prompt.scroll foo
+
+# ETC.
+
 > /connect foo.bar.baz foo:bar baz
 1,2 $ caps cleared
 1,2 $ hostname set to: [foo.bar.baz]