diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 00:03:58 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-06-26 00:03:58 +0300 |
commit | cb130d9158dc4e9c456d088d5e214b7d829ccc3a (patch) | |
tree | d0cbfe1549e74d383de10daafa02ad1bb3315821 /src/test.cpp | |
parent | a80025c352fb91ff295423940b3ded22755b70f0 (diff) | |
download | hax-minetest-server-cb130d9158dc4e9c456d088d5e214b7d829ccc3a.tar.gz hax-minetest-server-cb130d9158dc4e9c456d088d5e214b7d829ccc3a.zip |
cleaned map stuff
Diffstat (limited to '')
-rw-r--r-- | src/test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/test.cpp b/src/test.cpp index 7b86750d8..9ea402b6f 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -31,6 +31,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <sstream> #include "porting.h" #include "content_mapnode.h" +#include "mapsector.h" /* Asserts that the exception occurs @@ -641,13 +642,13 @@ struct TestMapSector // Create one with no heightmaps ServerMapSector sector(&parent, v2s16(1,1)); - EXCEPTION_CHECK(InvalidPositionException, sector.getBlockNoCreate(0)); - EXCEPTION_CHECK(InvalidPositionException, sector.getBlockNoCreate(1)); + assert(sector.getBlockNoCreateNoEx(0) == 0); + assert(sector.getBlockNoCreateNoEx(1) == 0); MapBlock * bref = sector.createBlankBlock(-2); - EXCEPTION_CHECK(InvalidPositionException, sector.getBlockNoCreate(0)); - assert(sector.getBlockNoCreate(-2) == bref); + assert(sector.getBlockNoCreateNoEx(0) == 0); + assert(sector.getBlockNoCreateNoEx(-2) == bref); //TODO: Check for AlreadyExistsException |