summaryrefslogtreecommitdiff
path: root/src/unittest/test_voxelmanipulator.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2015-05-05 11:36:40 -0400
committerkwolekr <kwolekr@minetest.net>2015-05-05 12:00:36 -0400
commitb45df9d6a73d97671cbdd38d77e9b153a80fb458 (patch)
treefbe70ad8b6c5a4646afebb7d55309720f6ae5eb4 /src/unittest/test_voxelmanipulator.cpp
parent1be2d32fd502eeb68bd63fb07b0325b25ee357bd (diff)
downloadminetest-b45df9d6a73d97671cbdd38d77e9b153a80fb458.tar.gz
minetest-b45df9d6a73d97671cbdd38d77e9b153a80fb458.tar.bz2
minetest-b45df9d6a73d97671cbdd38d77e9b153a80fb458.zip
Tests: Add NodeResolver unittests
Minor misc. NodeResolver cleanups Prefix faux content type constants for testing with t_ to avoid confusion or name collisions
Diffstat (limited to 'src/unittest/test_voxelmanipulator.cpp')
-rw-r--r--src/unittest/test_voxelmanipulator.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unittest/test_voxelmanipulator.cpp b/src/unittest/test_voxelmanipulator.cpp
index d219e62e0..7f8ba3849 100644
--- a/src/unittest/test_voxelmanipulator.cpp
+++ b/src/unittest/test_voxelmanipulator.cpp
@@ -87,10 +87,10 @@ void TestVoxelManipulator::testVoxelManipulator(INodeDefManager *nodedef)
v.print(infostream, nodedef);
infostream << "*** Setting (-1,0,-1)=2 ***" << std::endl;
- v.setNodeNoRef(v3s16(-1,0,-1), MapNode(CONTENT_GRASS));
+ v.setNodeNoRef(v3s16(-1,0,-1), MapNode(t_CONTENT_GRASS));
v.print(infostream, nodedef);
- UASSERT(v.getNode(v3s16(-1,0,-1)).getContent() == CONTENT_GRASS);
+ UASSERT(v.getNode(v3s16(-1,0,-1)).getContent() == t_CONTENT_GRASS);
infostream << "*** Reading from inexistent (0,0,-1) ***" << std::endl;
@@ -103,6 +103,6 @@ void TestVoxelManipulator::testVoxelManipulator(INodeDefManager *nodedef)
v.addArea(a);
v.print(infostream, nodedef);
- UASSERT(v.getNode(v3s16(-1,0,-1)).getContent() == CONTENT_GRASS);
+ UASSERT(v.getNode(v3s16(-1,0,-1)).getContent() == t_CONTENT_GRASS);
EXCEPTION_CHECK(InvalidPositionException, v.getNode(v3s16(0,1,1)));
}