From e0a383aa244ab854483d622064b456e41fd17618 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 1 Jul 2015 22:16:43 +0200 Subject: [PATCH] test the upper limit of the bag, too. --- scripts/tests/magicbag.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scripts/tests/magicbag.lua b/scripts/tests/magicbag.lua index e0b294cfd..4ca5e6ae5 100644 --- a/scripts/tests/magicbag.lua +++ b/scripts/tests/magicbag.lua @@ -25,6 +25,14 @@ function test_magicbag_no_stone() assert_equal(7100, u.weight) end +function test_magicbag_limit_200ge() + assert_equal(1000, u.weight) + u:add_item("log", 100) + assert_equal(51000, u.weight) + u:add_item("magicbag", 1) + assert_equal(31100, u.weight) +end + function test_magicbag_no_carts() assert_equal(1000, u.weight) u:add_item("cart", 1)