whitespace changes

This commit is contained in:
Enno Rehling 2015-02-20 20:35:02 +01:00
parent 1265daa3c6
commit ffbfdee4ff
1 changed files with 9 additions and 9 deletions

View File

@ -5,19 +5,19 @@ module ('tests.eressea.faction', package.seeall, lunit.testcase)
local f
function setup()
f = faction.create("faction@eressea.de", "human", "de")
f = faction.create("faction@eressea.de", "human", "de")
end
function test_faction_flags()
assert_equal(0, f.flags)
f.flags = 42
assert_equal(42, f.flags)
assert_equal(0, f.flags)
f.flags = 42
assert_equal(42, f.flags)
end
function test_get_faction()
assert_equal(f, get_faction(f.id))
assert_equal(f, faction.get(f.id))
local nf = f.id
if nf>1 then nf = nf - 1 else nf = 1 end
assert_equal(nil, faction.get(nf))
assert_equal(f, get_faction(f.id))
assert_equal(f, faction.get(f.id))
local nf = f.id
if nf>1 then nf = nf - 1 else nf = 1 end
assert_equal(nil, faction.get(nf))
end