forked from github/server
cppcheck false positives
This commit is contained in:
parent
079a55fe41
commit
72daecd27e
1 changed files with 2 additions and 0 deletions
|
@ -116,10 +116,12 @@ static void test_defenders_get_building_bonus(CuTest * tc)
|
||||||
at.index = 0;
|
at.index = 0;
|
||||||
|
|
||||||
bld->size = 10; /* stage 1 building */
|
bld->size = 10; /* stage 1 building */
|
||||||
|
CuAssertIntEquals(tc, 1, buildingeffsize(bld, false));
|
||||||
CuAssertIntEquals(tc, -1, skilldiff(at, dt, 0));
|
CuAssertIntEquals(tc, -1, skilldiff(at, dt, 0));
|
||||||
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));
|
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));
|
||||||
|
|
||||||
bld->size = 1; /* stage 0 building */
|
bld->size = 1; /* stage 0 building */
|
||||||
|
CuAssertIntEquals(tc, 0, buildingeffsize(bld, false));
|
||||||
CuAssertIntEquals(tc, 0, skilldiff(at, dt, 0));
|
CuAssertIntEquals(tc, 0, skilldiff(at, dt, 0));
|
||||||
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));
|
CuAssertIntEquals(tc, 0, skilldiff(dt, at, 0));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue