forked from github/server
parent
592fe18779
commit
67025b65d0
1 changed files with 8 additions and 8 deletions
|
@ -790,7 +790,7 @@ static void test_stealth_modifier(CuTest *tc) {
|
||||||
r = test_create_region(0, 0, NULL);
|
r = test_create_region(0, 0, NULL);
|
||||||
CuAssertIntEquals(tc, 0, stealth_modifier(r, f, seen_unit));
|
CuAssertIntEquals(tc, 0, stealth_modifier(r, f, seen_unit));
|
||||||
CuAssertIntEquals(tc, -1, stealth_modifier(r, f, seen_travel));
|
CuAssertIntEquals(tc, -1, stealth_modifier(r, f, seen_travel));
|
||||||
CuAssertIntEquals(tc, -2, stealth_modifier(r, f, seen_lighthouse));
|
CuAssertIntEquals(tc, -1, stealth_modifier(r, f, seen_lighthouse));
|
||||||
CuAssertIntEquals(tc, -1, stealth_modifier(r, f, seen_spell));
|
CuAssertIntEquals(tc, -1, stealth_modifier(r, f, seen_spell));
|
||||||
|
|
||||||
set_observer(r, f, 10, 1);
|
set_observer(r, f, 10, 1);
|
||||||
|
@ -865,7 +865,7 @@ static void test_visible_unit(CuTest *tc) {
|
||||||
CuAssertTrue(tc, visible_unit(u, f, 0, seen_unit));
|
CuAssertTrue(tc, visible_unit(u, f, 0, seen_unit));
|
||||||
CuAssertTrue(tc, visible_unit(u, f, 0, seen_spell));
|
CuAssertTrue(tc, visible_unit(u, f, 0, seen_spell));
|
||||||
CuAssertTrue(tc, visible_unit(u, f, 0, seen_battle));
|
CuAssertTrue(tc, visible_unit(u, f, 0, seen_battle));
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_travel));
|
CuAssertTrue(tc, visible_unit(u, f, 0, seen_travel));
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_none));
|
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_none));
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_neighbour));
|
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_neighbour));
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land));
|
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land));
|
||||||
|
|
Loading…
Reference in a new issue