From 65e5a8250466f1792468006d87aedfd474b19560 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 1 Aug 2012 23:12:23 -0700 Subject: [PATCH] we can now compare regions, do not need to compare ids --- scripts/tests/common.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/common.lua b/scripts/tests/common.lua index e6b3b8f4a..84d614b1b 100755 --- a/scripts/tests/common.lua +++ b/scripts/tests/common.lua @@ -329,7 +329,7 @@ function test_guard() u2:add_item("money", 100) u3:add_item("money", 100) process_orders() - assert_equal(r.id, u1.region.id, "unit may not move after combat") + assert_equal(r, u1.region, "unit may not move after combat") end function test_recruit()