fix test, cannot compare factions directly (why is that?)

This commit is contained in:
Enno 2011-02-25 16:32:11 +01:00
parent e882033359
commit de4a69e2df
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()