summaryrefslogtreecommitdiff
path: root/src/unittest/test_voxelalgorithms.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_voxelalgorithms.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_voxelalgorithms.cpp')
-rw-r--r--src/unittest/test_voxelalgorithms.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/unittest/test_voxelalgorithms.cpp b/src/unittest/test_voxelalgorithms.cpp
index 2093ff5f8..31b9cadd5 100644
--- a/src/unittest/test_voxelalgorithms.cpp
+++ b/src/unittest/test_voxelalgorithms.cpp
@@ -69,7 +69,7 @@ void TestVoxelAlgorithms::testPropogateSunlight(INodeDefManager *ndef)
== LIGHT_SUN);
}
- v.setNodeNoRef(v3s16(0,0,0), MapNode(CONTENT_STONE));
+ v.setNodeNoRef(v3s16(0,0,0), MapNode(t_CONTENT_STONE));
{
std::set<v3s16> light_sources;
@@ -91,7 +91,7 @@ void TestVoxelAlgorithms::testPropogateSunlight(INodeDefManager *ndef)
== 0);
}
- v.setNodeNoRef(v3s16(1,3,2), MapNode(CONTENT_STONE));
+ v.setNodeNoRef(v3s16(1,3,2), MapNode(t_CONTENT_STONE));
{
std::set<v3s16> light_sources;
@@ -180,8 +180,8 @@ void TestVoxelAlgorithms::testClearLightAndCollectSources(INodeDefManager *ndef)
}
VoxelArea a(v3s16(0,0,0), v3s16(2,2,2));
- v.setNodeNoRef(v3s16(0,0,0), MapNode(CONTENT_STONE));
- v.setNodeNoRef(v3s16(1,1,1), MapNode(CONTENT_TORCH));
+ v.setNodeNoRef(v3s16(0,0,0), MapNode(t_CONTENT_STONE));
+ v.setNodeNoRef(v3s16(1,1,1), MapNode(t_CONTENT_TORCH));
{
MapNode n(CONTENT_AIR);