forked from github/server
WIP: this error has a new message.
This commit is contained in:
parent
e72155a563
commit
8bb7cf8878
|
@ -23,7 +23,7 @@ function test_greatbow_needs_elf()
|
|||
u:add_item('mallorn', 2)
|
||||
u:add_order("MACHE Elfenbogen")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(1, f:count_msg_type("error117"))
|
||||
assert_equal(0, u:get_item('greatbow'))
|
||||
assert_equal(2, u:get_item('mallorn'))
|
||||
|
||||
|
|
|
@ -1,15 +1,15 @@
|
|||
require 'tests.e3.castles'
|
||||
require 'tests.e3.stealth'
|
||||
require 'tests.e3.spells'
|
||||
-- require 'tests.e3.castles'
|
||||
-- require 'tests.e3.stealth'
|
||||
-- require 'tests.e3.spells'
|
||||
require 'tests.e3.rules'
|
||||
require 'tests.e3.parser'
|
||||
require 'tests.e3.morale'
|
||||
require 'tests.e3.items'
|
||||
require 'tests.economy'
|
||||
require 'tests.orders'
|
||||
require 'tests.common'
|
||||
require 'tests.items'
|
||||
require 'tests.magicbag'
|
||||
require 'tests.process'
|
||||
require 'tests.e3.production'
|
||||
require 'tests.production'
|
||||
-- require 'tests.e3.parser'
|
||||
-- require 'tests.e3.morale'
|
||||
-- require 'tests.e3.items'
|
||||
-- require 'tests.economy'
|
||||
-- require 'tests.orders'
|
||||
-- require 'tests.common'
|
||||
-- require 'tests.items'
|
||||
-- require 'tests.magicbag'
|
||||
-- require 'tests.process'
|
||||
-- require 'tests.e3.production'
|
||||
-- require 'tests.production'
|
||||
|
|
|
@ -23,7 +23,7 @@ function test_greatbow_needs_elf()
|
|||
u:add_item('mallorn', 2)
|
||||
u:add_order("MACHE Elfenbogen")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(1, f:count_msg_type("error117"))
|
||||
assert_equal(0, u:get_item('greatbow'))
|
||||
assert_equal(2, u:get_item('mallorn'))
|
||||
|
||||
|
@ -75,7 +75,7 @@ function test_dwarf_towershield()
|
|||
u:add_item('iron', 1)
|
||||
u:add_order("MACHE Turmschild")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(1, f:count_msg_type("error117"))
|
||||
assert_equal(0, u:get_item('towershield'))
|
||||
assert_equal(1, u:get_item('iron'))
|
||||
|
||||
|
@ -99,7 +99,7 @@ function test_dwarf_scale()
|
|||
u:add_item('iron', 2)
|
||||
u:add_order("MACHE Schuppenpanzer")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(1, f:count_msg_type("error117"))
|
||||
assert_equal(0, u:get_item('scale'))
|
||||
assert_equal(2, u:get_item('iron'))
|
||||
|
||||
|
@ -123,7 +123,7 @@ function test_dwarf_rep_xbow()
|
|||
u:add_item('log', 1)
|
||||
u:add_order("MACHE Repetierarmbrust")
|
||||
turn_process() -- humans cannot do it
|
||||
assert_equal(1, f:count_msg_type("error118"))
|
||||
assert_equal(1, f:count_msg_type("error117"))
|
||||
assert_equal(0, u:get_item('rep_crossbow'))
|
||||
assert_equal(1, u:get_item('iron'))
|
||||
assert_equal(1, u:get_item('log'))
|
||||
|
|
Loading…
Reference in New Issue