From: Jeremy Stanley Date: Sat, 19 Sep 2015 05:09:22 +0000 (+0000) Subject: Test chat mode X-Git-Tag: 0.0.1~204 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=8a37091d32b29f812e0b81f3197b9c2b7a889f80;p=mudpy.git Test chat mode Add a functional test for chat mode. --- 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"),