made a mistake in this test.

creport was reporting to wrong faction (that sees the same output, so it didn't fail).
This commit is contained in:
Enno Rehling 2017-03-08 18:29:04 +01:00
parent 517da2dff1
commit 4bda1a34e0

View file

@ -231,7 +231,7 @@ static void test_cr_factionstealth(CuTest *tc) {
/* ... also when they are anonymous */
u->flags |= UFL_ANON_FACTION;
mstream_init(&strm);
cr_output_unit(&strm, u->region, f1, u, seen_unit);
cr_output_unit(&strm, u->region, f2, u, seen_unit);
CuAssertIntEquals(tc, f1->no, cr_get_int(&strm, ";Partei", -1));
CuAssertIntEquals(tc, f2->no, cr_get_int(&strm, ";Anderepartei", -1));
CuAssertIntEquals(tc, -1, cr_get_int(&strm, ";Verraeter", -1));