improve the mailcmd test

This commit is contained in:
Enno Rehling 2017-06-11 17:13:31 +02:00
parent f6ba5b6a53
commit 3ec1476da2
1 changed files with 1 additions and 0 deletions

View File

@ -278,6 +278,7 @@ static void test_game_mailcmd(CuTest *tc) {
CuAssertStrEquals(tc, "Eressea", game_name()); CuAssertStrEquals(tc, "Eressea", game_name());
CuAssertStrEquals(tc, "ERESSEA", game_mailcmd()); CuAssertStrEquals(tc, "ERESSEA", game_mailcmd());
config_set("game.name", "Hodor"); config_set("game.name", "Hodor");
config_set("game.mailcmd", NULL);
CuAssertStrEquals(tc, "Hodor", game_name()); CuAssertStrEquals(tc, "Hodor", game_name());
CuAssertStrEquals(tc, "HODOR", game_mailcmd()); CuAssertStrEquals(tc, "HODOR", game_mailcmd());
config_set("game.mailcmd", "ERESSEA"); config_set("game.mailcmd", "ERESSEA");