projects
/
mudpy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d37f954
)
Test chat mode
author
Jeremy Stanley
<fungi@yuggoth.org>
Sat, 19 Sep 2015 05:09:22 +0000
(
05:09
+0000)
committer
Jeremy Stanley
<fungi@yuggoth.org>
Sat, 19 Sep 2015 05:09:22 +0000
(
05:09
+0000)
Add a functional test for chat mode.
bin/test
patch
|
blob
|
history
diff --git
a/bin/test
b/bin/test
index
10ea7c4
..
925e558
100755
(executable)
--- a/
bin/test
+++ b/
bin/test
@@
-86,6
+86,16
@@
test_sentence_capitalization = (
(1, 'says, "This sentence', ""),
)
(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\.", ""),
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_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"),
(test_actor_disappears, "actor spontaneous disappearance"),
(test_account0_teardown, "first account teardown"),
(test_account1_teardown, "second account teardown"),