(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_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"),
except:
pass
if index is not 0:
- print("ERROR: luser%s did not receive expected string:\n\n%s"
- % (conversant, question))
+ print("ERROR: luser%s did not receive expected string:\n\n%s\n\n"
+ "Check the end of capture_%s.log for received data."
+ % (conversant, question, conversant))
success = False
break
print("luser%s sending: %s" % (conversant, answer))