From e233ed434447d1a076756c3bdee68eb093fffe60 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 5 Mar 2017 19:23:47 +0100 Subject: [PATCH] eliminate source of randomness from test --- src/report.test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/report.test.c b/src/report.test.c index 0bfea3c69..3c6a09ae1 100644 --- a/src/report.test.c +++ b/src/report.test.c @@ -96,7 +96,7 @@ static void test_report_region(CuTest *tc) { mstream_init(&out); r = test_create_region(0, 0, 0); add_resource(r, 1, 100, 10, rt_stone); - CuAssertIntEquals(tc, 135, r->resources->amount); + r->resources->amount = 135; CuAssertIntEquals(tc, 1, r->resources->level); r->land->peasants = 5; r->land->horses = 7;