recruiting fewer units than expected creates a message.

This commit is contained in:
Enno Rehling 2016-09-18 13:49:34 +02:00
parent 7ef316f773
commit dc5fe4a0eb
1 changed files with 4 additions and 0 deletions

View File

@ -303,6 +303,10 @@ static void test_recruit(CuTest *tc) {
CuAssertPtrEquals(tc, u, f->units);
CuAssertPtrEquals(tc, NULL, u->nextF);
CuAssertPtrEquals(tc, NULL, u->prevF);
CuAssertPtrEquals(tc, NULL, test_find_messagetype(f->msgs, "recruit"));
add_recruits(u, 1, 2);
CuAssertIntEquals(tc, 3, u->number);
CuAssertPtrNotNull(tc, test_find_messagetype(f->msgs, "recruit"));
test_cleanup();
}