test the upper limit of the bag, too.

This commit is contained in:
Enno Rehling 2015-07-01 22:16:43 +02:00
parent c634a01a3f
commit e0a383aa24
1 changed files with 8 additions and 0 deletions

View File

@ -25,6 +25,14 @@ function test_magicbag_no_stone()
assert_equal(7100, u.weight) assert_equal(7100, u.weight)
end 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() function test_magicbag_no_carts()
assert_equal(1000, u.weight) assert_equal(1000, u.weight)
u:add_item("cart", 1) u:add_item("cart", 1)