From d5443f88d8d9b12eef9b831cb2913ae8297ec147 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 2 Aug 2012 00:06:22 -0700 Subject: [PATCH] laen test does not work. trying to make setresource add the raw material to fix it --- eressea | 2 +- scripts/tests/e3a.lua | 32 ++++++++++++++++---------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/eressea b/eressea index f6b5728b4..1fe075e82 160000 --- a/eressea +++ b/eressea @@ -1 +1 @@ -Subproject commit f6b5728b4925afcb5c9b1cf64a0cc74ea2e09304 +Subproject commit 1fe075e82d4f84c4e198389b4e85304e10557570 diff --git a/scripts/tests/e3a.lua b/scripts/tests/e3a.lua index cc0bf61ac..e426725b9 100644 --- a/scripts/tests/e3a.lua +++ b/scripts/tests/e3a.lua @@ -237,22 +237,22 @@ function test_taxes() end function test_leave() - local r = region.create(0, 0, "plain") - local f = faction.create("noreply@eressea.de", "human", "de") - f.id = 42 - local b1 = building.create(r, "castle") - b1.size = 10 - local b2 = building.create(r, "lighthouse") - b2.size = 10 - local u = unit.create(f, r, 1) - u.building = b1 - assert_not_equal(nil, u.building) - u:add_item("money", u.number * 100) - u:clear_orders() - u:add_order("BETRETE BURG " .. itoa36(b2.id)) - update_owners() - process_orders() - assert_equal(u.building.id, b1.id, "region owner has left the building") -- region owners may not leave + local r = region.create(0, 0, "plain") + local f = faction.create("noreply@eressea.de", "human", "de") + f.id = 42 + local b1 = building.create(r, "castle") + b1.size = 10 + local b2 = building.create(r, "lighthouse") + b2.size = 10 + local u = unit.create(f, r, 1) + u.building = b1 + assert_not_equal(nil, u.building) + u:add_item("money", u.number * 100) + u:clear_orders() + u:add_order("BETRETE BURG " .. itoa36(b2.id)) + update_owners() + process_orders() + assert_equal(u.building, b1, "region owner has left the building") -- region owners may not leave end function test_market()