diff --git a/tests/unit/core/test-core-command.cpp b/tests/unit/core/test-core-command.cpp index be0a13738..1d8accd56 100644 --- a/tests/unit/core/test-core-command.cpp +++ b/tests/unit/core/test-core-command.cpp @@ -978,7 +978,58 @@ TEST(CoreCommand, Filter) TEST(CoreCommand, Help) { - /* TODO: write tests */ + WEE_CMD_CORE_ERROR_MSG( + "/help xxx", + "No help available, \"xxx\" is not a command or an option"); + + /* /help, /help -list, /help -listfull */ + WEE_CMD_CORE("/help"); + WEE_CHECK_MSG_CORE("", "[core]"); + WEE_CMD_CORE("/help -list"); + WEE_CHECK_MSG_CORE("", "[core]"); + WEE_CMD_CORE("/help -listfull"); + WEE_CHECK_MSG_CORE("", "[core]"); + WEE_CMD_CORE("/help -listfull core irc fset"); + WEE_CHECK_MSG_CORE("", "[core]"); + WEE_CHECK_MSG_CORE("", "[irc]"); + WEE_CHECK_MSG_CORE("", "[fset]"); + + /* /help */ + WEE_CMD_CORE("/help help"); + WEE_CHECK_MSG_CORE("", "display help about commands and options"); + + /* /help