forked from github/server
fix a test that compared structs
This commit is contained in:
parent
e0ce8877a5
commit
a774f882e5
|
@ -184,13 +184,13 @@ function test_ship_capacity()
|
||||||
write_reports()
|
write_reports()
|
||||||
end
|
end
|
||||||
assert_equal(r2, u1.region)
|
assert_equal(r2, u1.region)
|
||||||
assert_not_equal(r2, u2.region)
|
assert_not_equal(r2.id, u2.region.id)
|
||||||
if r2~=u3.region then
|
if r2~=u3.region then
|
||||||
print(get_turn(), u3, u3.faction)
|
print(get_turn(), u3, u3.faction)
|
||||||
write_reports()
|
write_reports()
|
||||||
end
|
end
|
||||||
assert_equal(r2, u3.region)
|
assert_equal(r2, u3.region)
|
||||||
assert_not_equal(r2, u4.region)
|
assert_not_equal(r2.id, u4.region.id)
|
||||||
end
|
end
|
||||||
|
|
||||||
function test_owners()
|
function test_owners()
|
||||||
|
@ -256,7 +256,6 @@ function test_leave()
|
||||||
process_orders()
|
process_orders()
|
||||||
init_reports()
|
init_reports()
|
||||||
write_report(u.faction)
|
write_report(u.faction)
|
||||||
print(u.faction)
|
|
||||||
assert_equal(b1, u.building, "region owner has left the building") -- region owners may not leave
|
assert_equal(b1, u.building, "region owner has left the building") -- region owners may not leave
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue