From 40417369a9da6067f6b484f20242b91549f75f9a Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Sat, 20 Sep 2025 01:17:36 +0200 Subject: [PATCH] Add privmsg query window to testing. --- test.txt | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/test.txt b/test.txt index 0bb5a39..43b9bd3 100644 --- a/test.txt +++ b/test.txt @@ -237,10 +237,19 @@ 1,2 $ me 5 $ residents: baz, foo +# handle query window with known user +2 < :baz!~baz@baz.baz PRIVMSG foo :hi there +6 < [baz] hi there +> /privmsg baz hello, how is it going +2 > PRIVMSG baz :hello, how is it going +6 > [foo] hello, how is it going +2 < :baz!~baz@baz.baz PRIVMSG foo :fine! +6 < [baz] fine! + # handle non-self renaming 2 < :baz!~baz@baz.baz NICK :bazbaz 1,2 $ users:2:nick set to: [bazbaz] -4,5 $ baz!~baz@baz.baz renames bazbaz +4,5,6 $ baz!~baz@baz.baz renames bazbaz # handle non-self PART in one of two inhabited channels, preserve identity into re-JOIN 2 < :bazbaz!~baz@baz.baz PART :#test @@ -279,7 +288,7 @@ # handle non-self QUIT 2 < :bazbaz!~baz@baz.baz QUIT :Client Quit -, $ bazbaz!~baz@baz.baz quits: Client Quit +6 $ bazbaz!~baz@baz.baz quits: Client Quit 1,2 $ channels:#test:exits:2 set to: [QClient Quit] 1,2 $ channels:#test:user_ids set to: 1,2 $ 3 @@ -308,14 +317,14 @@ 1,2 $ requesting disconnect … 2 > QUIT :ircplom says bye 2 < :foo!~foobarbaz@baz.bar.foo QUIT :Client Quit -1,2,3,4,5 $ foo!~foobarbaz@baz.bar.foo quits: Client Quit +1,2,3,4,5,6 $ foo!~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 $ quits: foo!~foobarbaz@baz.bar.foo: Client Quit 1,2 $ channels:#testtest:exits:me cleared 2 < ERROR :Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye] -1,2,3,4,5 $ connection_state set to: [Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]] -1,2,3,4,5 $ connection_state set to: [] +1,2,3,4,5,6 $ connection_state set to: [Closing link: (~foobarbaz@baz.bar.foo) [Quit: ircplom says bye]] +1,2,3,4,5,6 $ connection_state set to: [] 1,2 $ isupport cleared 1,2 $ isupport:CHANTYPES set to: [#&] 1,2 $ isupport:PREFIX set to: [(ov)@+] @@ -329,10 +338,10 @@ # check that (save TUI tests assuming start on window 0, and no 4 yet) on reconnect, all the same effects can be expected > /reconnect -1,2,3,4,5 $ connection_state set to: [connecting] -1,2,3,4,5 $ connection_state set to: [connected] +1,2,3,4,5,6 $ connection_state set to: [connecting] +1,2,3,4,5,6 $ connection_state set to: [connected] repeat 64:147 -repeat 158:328 +repeat 158:338 > /quit 0 < -- 2.30.2