From 681a4bdaa8333d5b4e808760a0faf221ed3ae481 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 3 Mar 2017 17:27:51 +0100 Subject: [PATCH] dolphins are animals, but not horses. --- scripts/tests/common.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/tests/common.lua b/scripts/tests/common.lua index 317380417..fa2fd9f35 100644 --- a/scripts/tests/common.lua +++ b/scripts/tests/common.lua @@ -1036,8 +1036,11 @@ function test_give_horses() r:set_resource("horse", 0) u:add_item("horse", 20) - u:add_order("GIB 0 10 PFERDE") + u:add_item("dolphin", 10) + u:add_order("GIB 0 10 PFERD") + u:add_order("GIB 0 5 DELPHIN") process_orders() assert_equal(10, r:get_resource("horse")) + assert_equal(5, u:get_item("dolphin")) assert_equal(10, u:get_item("horse")) end