Show possible abbreviations in help list
[mudpy.git] / mudpy / tests / selftest.py
index ddb09f0..56549da 100644 (file)
@@ -216,9 +216,11 @@ test_admin_help = (
 )
 
 test_abbrev = (
-    (0, "> ", "help mov"),
-    (0, r"Move in a specific direction\.", "mov north"),
-    (0, r"You exit to the north\.", ""),
+    (0, "> ", "h"),
+    (0, r"h\[elp\].*m\[ove\].*> ", "he mo"),
+    (0, r"Move in a specific direction\..*> ", "mov north"),
+    (0, r"You exit to the north\..*> ", "m south"),
+    (0, r"You exit to the south\..*> ", ""),
 )
 
 test_reload = (