forked from github/server
improve the mailcmd test
This commit is contained in:
parent
f6ba5b6a53
commit
3ec1476da2
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue