From 48939cc80fe6a8de0b5cbf3ed995ef029f5a3fc5 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 20 Sep 2025 07:55:36 +0200 Subject: [PATCH] Test 401. --- test.txt | 59 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 33 insertions(+), 26 deletions(-) diff --git a/test.txt b/test.txt index 7941871..6f11a41 100644 --- a/test.txt +++ b/test.txt @@ -262,6 +262,13 @@ 0:2 < :baz!~baz@baz.baz PRIVMSG foo1 :fine! 6 < [baz] fine! +# handle failure to query absent user +> /privmsg barbar hello! +2 > PRIVMSG barbar :hello! +7 > [foo1] hello! +0:2 < :*.?.net 401 foo1 barbar :No such nick/channel +7 !$ barbar not online + # handle non-self renaming 0:2 < :baz!~baz@baz.baz NICK :bazbaz 1,2 $ users:2:nick set to: [bazbaz] @@ -335,7 +342,7 @@ 2 > QUIT :ircplom says bye 0:2 < :foo1!~foobarbaz@baz.bar.foo QUIT :Client Quit 1,2 $ users:me:exit_msg set to: [QClient Quit] -3,6 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit +3,6,7 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit 1,2 $ channels:#testtest:exits:me set to: [QClient Quit] 1,2 $ channels:#testtest:user_ids set to: 5 $ foo1!~foobarbaz@baz.bar.foo quits: Client Quit @@ -343,7 +350,7 @@ 0:2 < ERROR :Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye] 1,2 $ connection_state set to: [Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]] 1,2 $ connection_state set to: [] -3,4,5,6 $ DISCONNECTED +3,4,5,6,7 $ DISCONNECTED 1,2 $ isupport cleared 1,2 $ isupport:CHANTYPES set to: [#&] 1,2 $ isupport:PREFIX set to: [(ov)@+] @@ -358,36 +365,36 @@ # check that (save TUI tests assuming start on window 0, and no 4 yet) on reconnect, all the same effects can be expected > /reconnect repeat 63:65 -3,4,5,6 $ CONNECTED +3,4,5,6,7 $ CONNECTED repeat 66:158 -repeat 167:357 +repeat 167:364 # test setting up second client, but 432 irrecoverably > /connect baz.bar.foo ?foo foo:foo -7,8 $ isupport cleared -7,8 $ isupport:CHANTYPES set to: [#&] -7,8 $ isupport:PREFIX set to: [(ov)@+] -7,8 $ isupport:USERLEN set to: [10] -7,8 $ hostname set to: [baz.bar.foo] -7,8 $ port set to: [-1] -7,8 $ nick_wanted set to: [?foo] -7,8 $ user_wanted set to: [foo] -7,8 $ realname set to: [foo] -7,8 $ port set to: [6697] -7,8 $ connection_state set to: [connecting] -7,8 $ connection_state set to: [connected] +8,9 $ isupport cleared +8,9 $ isupport:CHANTYPES set to: [#&] +8,9 $ isupport:PREFIX set to: [(ov)@+] +8,9 $ isupport:USERLEN set to: [10] +8,9 $ hostname set to: [baz.bar.foo] +8,9 $ port set to: [-1] +8,9 $ nick_wanted set to: [?foo] +8,9 $ user_wanted set to: [foo] +8,9 $ realname set to: [foo] +8,9 $ port set to: [6697] +8,9 $ connection_state set to: [connecting] +8,9 $ connection_state set to: [connected] , $ CONNECTED -1:8 > CAP LS :302 -1:8 > USER foo 0 * :foo -1:8 > NICK :?foo -1:8 < :*.?.net 432 * ?foo :Erroneous nickname -7,8 $ connection_state set to: [] +1:9 > CAP LS :302 +1:9 > USER foo 0 * :foo +1:9 > NICK :?foo +1:9 < :*.?.net 432 * ?foo :Erroneous nickname +8,9 $ connection_state set to: [] , $ DISCONNECTED -7,8 $ isupport cleared -7,8 $ isupport:CHANTYPES set to: [#&] -7,8 $ isupport:PREFIX set to: [(ov)@+] -7,8 $ isupport:USERLEN set to: [10] -7,8 !$ nickname refused for bad format, giving up +8,9 $ isupport cleared +8,9 $ isupport:CHANTYPES set to: [#&] +8,9 $ isupport:PREFIX set to: [(ov)@+] +8,9 $ isupport:USERLEN set to: [10] +8,9 !$ nickname refused for bad format, giving up > /quit 0 < -- 2.30.2