From 8c42643528a53a8f4a3d9369180431ebd856e177 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 6 Mar 2011 11:27:37 +0100 Subject: [PATCH] added Atlantis ship types --- scripts/tests/common.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/tests/common.lua b/scripts/tests/common.lua index 253f09c99..c836e4272 100644 --- a/scripts/tests/common.lua +++ b/scripts/tests/common.lua @@ -1,10 +1,7 @@ require "lunit" local function _test_create_ship(r) - local s = ship.create(r, "canoe") - if (s==nil) then - s = ship.create(r, "boat") - end + local s = ship.create(r, test.shipname) return s end @@ -408,6 +405,7 @@ function test_id() assert(get_building(atoi36(fortytwo))==b) local s = _test_create_ship(r) + assert_not_nil(s) -- s.id = atoi36("42") local fortytwo = itoa36(s.id) assert(get_ship(fortytwo)==s)