From: Jeremy Stanley Date: Mon, 13 May 2019 03:30:53 +0000 (+0000) Subject: Correct data type for see_also command facets X-Git-Tag: 0.0.1~10 X-Git-Url: https://mudpy.org/gitweb?a=commitdiff_plain;h=edddf0499e537e611ac1b8de5d960ce13b434d3e;p=mudpy.git Correct data type for see_also command facets Make the see_also facets of the chat and say commands list items as they were originally intended to be, and test that they get displayed. --- diff --git a/mudpy/tests/selftest.py b/mudpy/tests/selftest.py index 56549da..1b2de6a 100644 --- a/mudpy/tests/selftest.py +++ b/mudpy/tests/selftest.py @@ -215,6 +215,11 @@ test_admin_help = ( (2, "This will save all active accounts", ""), ) +test_help = ( + (0, "> ", "help say"), + (0, r"See also: .*chat.*> ", ""), +) + test_abbrev = ( (0, "> ", "h"), (0, r"h\[elp\].*m\[ove\].*> ", "he mo"), @@ -353,6 +358,7 @@ dialogue = ( (test_telnet_unknown_option, "log unknown telnet option"), (test_admin_restriction, "restricted admin commands"), (test_admin_help, "admin help"), + (test_help, "help command"), (test_abbrev, "command abbreviation"), (test_reload, "reload"), (test_set_facet, "set facet"), diff --git a/share/command.yaml b/share/command.yaml index e5d113f..7fe1d16 100644 --- a/share/command.yaml +++ b/share/command.yaml @@ -12,7 +12,8 @@ command.chat.help: The chat command toggles chat mode. When in chat mode, all input is passed as a parameter to the say command, unless prepended by an exclamation mark (!). For example, to leave chat mode, use:$(eol)$(eol) !chat -command.chat.see_also: say +command.chat.see_also: + - say command.create.administrative: true command.create.description: Create a new element in the universe. @@ -74,7 +75,8 @@ command.say.help: This allows you to speak to other characters within the same ask, "You're sure I went the wrong way?"$(eol)$(eol)If necessary, enclose literal statements in quotation marks:$(eol)$(eol) > say "youre sure i went teh wrong way?"$(eol) You say, "youre sure i went teh wrong way?" -command.say.see_also: chat +command.say.see_also: + - chat command.set.action: command.c_set command.set.administrative: true