forked from github/server
recruiting fewer units than expected creates a message.
This commit is contained in:
parent
7ef316f773
commit
dc5fe4a0eb
1 changed files with 4 additions and 0 deletions
|
@ -303,6 +303,10 @@ static void test_recruit(CuTest *tc) {
|
||||||
CuAssertPtrEquals(tc, u, f->units);
|
CuAssertPtrEquals(tc, u, f->units);
|
||||||
CuAssertPtrEquals(tc, NULL, u->nextF);
|
CuAssertPtrEquals(tc, NULL, u->nextF);
|
||||||
CuAssertPtrEquals(tc, NULL, u->prevF);
|
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();
|
test_cleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue