added Atlantis ship types

This commit is contained in:
Enno Rehling 2011-03-06 11:27:37 +01:00
parent 8c129f1576
commit 8c42643528
1 changed files with 2 additions and 4 deletions

View File

@ -1,10 +1,7 @@
require "lunit" require "lunit"
local function _test_create_ship(r) local function _test_create_ship(r)
local s = ship.create(r, "canoe") local s = ship.create(r, test.shipname)
if (s==nil) then
s = ship.create(r, "boat")
end
return s return s
end end
@ -408,6 +405,7 @@ function test_id()
assert(get_building(atoi36(fortytwo))==b) assert(get_building(atoi36(fortytwo))==b)
local s = _test_create_ship(r) local s = _test_create_ship(r)
assert_not_nil(s)
-- <not working> s.id = atoi36("42") -- <not working> s.id = atoi36("42")
local fortytwo = itoa36(s.id) local fortytwo = itoa36(s.id)
assert(get_ship(fortytwo)==s) assert(get_ship(fortytwo)==s)