forked from github/server
some tests don't belong in Lua
This commit is contained in:
parent
6d0bcb246d
commit
46bc0eb620
1 changed files with 17 additions and 19 deletions
|
@ -19,18 +19,16 @@ function test_stealth_faction_on()
|
|||
u:clear_orders()
|
||||
u:add_order("TARNE PARTEI")
|
||||
|
||||
eressea.settings.set("rules.stealth.faction", 1)
|
||||
process_orders()
|
||||
assert_not_match("Partei", report.report_unit(u, f))
|
||||
assert_match("anonym", report.report_unit(u, f))
|
||||
end
|
||||
|
||||
function test_stealth_faction_off()
|
||||
function test_stealth_faction_other()
|
||||
u:clear_orders()
|
||||
u:add_order("TARNE PARTEI")
|
||||
u:add_order("TARNE PARTEI " .. itoa36(f.id))
|
||||
|
||||
eressea.settings.set("rules.stealth.faction", 0)
|
||||
process_orders()
|
||||
assert_match("Partei", report.report_unit(u, f))
|
||||
assert_not_match("anonym", report.report_unit(u, f))
|
||||
assert_not_match(itoa36(f.id), report.report_unit(u, f))
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue