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:
Enno Rehling 2012-06-09 09:18:17 +02:00
parent 2292c61601
commit 8327db65b8
1 changed files with 2 additions and 2 deletions

View File

@ -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