forked from github/server
I have a slightly broken version of tolua installed which doesn't compare
user types. Working around that bug by comparing integers instead. Sigh.
This commit is contained in:
parent
2292c61601
commit
8327db65b8
|
@ -936,7 +936,7 @@ function test_bug_1922()
|
||||||
u:add_order("NACH O")
|
u:add_order("NACH O")
|
||||||
u:set_skill("sailing",120) -- supadupa captain able to drive a trireme
|
u:set_skill("sailing",120) -- supadupa captain able to drive a trireme
|
||||||
process_orders()
|
process_orders()
|
||||||
assert_not_equal(r2,u.region) -- unit should not reach r2.
|
assert_not_equal(r2.id, u.region.id) -- unit should not reach r2.
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -956,7 +956,7 @@ function test_bug_1922_by_foot()
|
||||||
u:add_order("NACH O")
|
u:add_order("NACH O")
|
||||||
|
|
||||||
process_orders()
|
process_orders()
|
||||||
assert_not_equal(r2,u.region) -- unit should not reach r2.
|
assert_not_equal(r2.id, u.region.id) -- unit should not reach r2.
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue