X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=bin%2Ftest;h=925e5586be432b69e89db75ffc64295de8692b1c;hp=10ea7c456094f1062daa2b212649e0d0f6b2146c;hb=8a37091d32b29f812e0b81f3197b9c2b7a889f80;hpb=d37f954222a2f2b16eceb5166931f85e1838f2a2 diff --git a/bin/test b/bin/test index 10ea7c4..925e558 100755 --- a/bin/test +++ b/bin/test @@ -86,6 +86,16 @@ test_sentence_capitalization = ( (1, 'says, "This sentence', ""), ) +test_chat_mode = ( + (1, '> ', "chat"), + (1, '> \(chat\) ', "Feeling chatty."), + (1, 'You say, "Feeling chatty\."', "!chat"), + (0, 'says, "Feeling chatty\."', ""), + (1, '> ', "say Now less chatty."), + (1, 'You say, "Now less chatty\."', ""), + (0, 'says, "Now less chatty\."', ""), +) + test_actor_disappears = ( (1, "> ", "quit"), (0, "You suddenly wonder where .* went\.", ""), @@ -116,6 +126,7 @@ dialogue = ( (test_implicit_punctuation, "implicit punctuation"), (test_typo_replacement, "typo replacement"), (test_sentence_capitalization, "sentence capitalization"), + (test_chat_mode, "chat mode"), (test_actor_disappears, "actor spontaneous disappearance"), (test_account0_teardown, "first account teardown"), (test_account1_teardown, "second account teardown"),