forked from github/server
fix test, cannot compare factions directly (why is that?)
This commit is contained in:
parent
e882033359
commit
de4a69e2df
|
@ -48,7 +48,7 @@ function process(orders)
|
||||||
update_scores()
|
update_scores()
|
||||||
frost.update()
|
frost.update()
|
||||||
|
|
||||||
local localechange = { de = { "ii" } }
|
local localechange = { en = { "L46o" } }
|
||||||
change_locales(localechange)
|
change_locales(localechange)
|
||||||
|
|
||||||
-- use newfactions file to place out new players
|
-- use newfactions file to place out new players
|
||||||
|
|
|
@ -417,7 +417,7 @@ function test_alliance()
|
||||||
assert(f2.alliance~=nil)
|
assert(f2.alliance~=nil)
|
||||||
assert(f2.alliance==f1.alliance)
|
assert(f2.alliance==f1.alliance)
|
||||||
for f in f1.alliance.factions do
|
for f in f1.alliance.factions do
|
||||||
assert_true(f==f1 or f==f2)
|
assert_true(f.id==f1.id or f.id==f2.id)
|
||||||
end
|
end
|
||||||
u1:clear_orders()
|
u1:clear_orders()
|
||||||
u2:clear_orders()
|
u2:clear_orders()
|
||||||
|
|
Loading…
Reference in New Issue