diff --git a/src/kernel/jsonconf.test.c b/src/kernel/jsonconf.test.c index cdc396a31..1547fde45 100644 --- a/src/kernel/jsonconf.test.c +++ b/src/kernel/jsonconf.test.c @@ -12,7 +12,11 @@ #include "spell.h" #include "order.h" #include "terrain.h" + +#include "prefix.h" + #include "util/language.h" + #include #include #include @@ -88,7 +92,10 @@ static void test_prefixes(CuTest * tc) test_cleanup(); json_config(json); - // CuAssertStrEquals("dark", get_prefix("snow")); + CuAssertPtrNotNull(tc, race_prefixes); + CuAssertStrEquals(tc, "snow", race_prefixes[0]); + CuAssertStrEquals(tc, "dark", race_prefixes[2]); + CuAssertPtrEquals(tc, 0, race_prefixes[3]); test_cleanup(); } diff --git a/src/prefix.c b/src/prefix.c index 072e573ae..ee9494e61 100644 --- a/src/prefix.c +++ b/src/prefix.c @@ -1,3 +1,4 @@ +#include #include "prefix.h" #include