From 8a37091d32b29f812e0b81f3197b9c2b7a889f80 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Sat, 19 Sep 2015 05:09:22 +0000 Subject: [PATCH] Test chat mode Add a functional test for chat mode. --- bin/test | 11 +++++++++++ 1 file changed, 11 insertions(+) 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"), -- 2.11.0