eliminate source of randomness from test

This commit is contained in:
Enno Rehling 2017-03-05 19:23:47 +01:00
parent 5c1fb83c47
commit e233ed4344

View file

@ -96,7 +96,7 @@ static void test_report_region(CuTest *tc) {
mstream_init(&out); mstream_init(&out);
r = test_create_region(0, 0, 0); r = test_create_region(0, 0, 0);
add_resource(r, 1, 100, 10, rt_stone); add_resource(r, 1, 100, 10, rt_stone);
CuAssertIntEquals(tc, 135, r->resources->amount); r->resources->amount = 135;
CuAssertIntEquals(tc, 1, r->resources->level); CuAssertIntEquals(tc, 1, r->resources->level);
r->land->peasants = 5; r->land->peasants = 5;
r->land->horses = 7; r->land->horses = 7;