X-Git-Url: https://mudpy.org/gitweb?p=mudpy.git;a=blobdiff_plain;f=mudpy%2Ftests%2Fselftest.py;h=bf324345e9e7acf780e4dc46ec00558b23dd5603;hp=b85948472262f05f4c8159121c1e01b858fe71cd;hb=34d256939f22a5186b32d0628ed399e4b644e798;hpb=d29c6859cb7c3052b3280d504fa78a5c1e0cd5a9 diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index b859484..bf32434 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -96,6 +96,11 @@ test_chat_mode = ( (0, r'says, "Now less chatty\."', ""), ) +test_wrapping = ( + (0, '> ', "say " + 100 * "o"), + (1, r'says,\r\n"O[o]+\."', ""), +) + test_movement = ( (0, "> ", "move north"), (0, r"You exit to the north\.", ""), @@ -257,6 +262,7 @@ dialogue = ( (test_typo_replacement, "typo replacement"), (test_sentence_capitalization, "sentence capitalization"), (test_chat_mode, "chat mode"), + (test_wrapping, "wrapping"), (test_movement, "movement"), (test_actor_disappears, "actor spontaneous disappearance"), (test_account1_teardown, "second account teardown"),