forked from github/server
update test for lighthouse visibility
This commit is contained in:
parent
7cedc4c9dd
commit
90511b434c
|
@ -871,7 +871,7 @@ static void test_visible_unit(CuTest *tc) {
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land));
|
CuAssertTrue(tc, !visible_unit(u, f, 0, seen_lighthouse_land));
|
||||||
|
|
||||||
CuAssertTrue(tc, visible_unit(u, f, 0, seen_lighthouse));
|
CuAssertTrue(tc, visible_unit(u, f, 0, seen_lighthouse));
|
||||||
CuAssertTrue(tc, !visible_unit(u, f, -2, seen_lighthouse));
|
CuAssertTrue(tc, visible_unit(u, f, -2, seen_lighthouse));
|
||||||
|
|
||||||
u->ship = sh = test_create_ship(u->region, NULL);
|
u->ship = sh = test_create_ship(u->region, NULL);
|
||||||
CuAssertTrue(tc, visible_unit(u, f, -2, seen_travel));
|
CuAssertTrue(tc, visible_unit(u, f, -2, seen_travel));
|
||||||
|
|
Loading…
Reference in New Issue