From fa3fd509471cf25519018698dc592465079049e6 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 17 Sep 2025 18:09:16 +0200 Subject: [PATCH] Extend basic TUI tests. --- test.txt | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/test.txt b/test.txt index 375ab57..713096e 100644 --- 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] @@ -11,11 +27,20 @@ 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] -- 2.30.2