From b65a5aceb0d6552d8ba4878bed5326c614dd3046 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 16 Oct 2011 14:57:53 +0300 Subject: Use the logger; also, default to not showing much crap in console. Use --info-on-stderr to enable crap. --- src/test.cpp | 139 ++++++++++++++++++++++++++++++----------------------------- 1 file changed, 70 insertions(+), 69 deletions(-) (limited to 'src/test.cpp') diff --git a/src/test.cpp b/src/test.cpp index ed3df1da8..6b9ef4b6f 100644 --- a/src/test.cpp +++ b/src/test.cpp @@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "content_mapnode.h" #include "mapsector.h" #include "settings.h" +#include "log.h" /* Asserts that the exception occurs @@ -49,9 +50,9 @@ struct TestUtilities { void Run() { - /*dstream<<"wrapDegrees(100.0) = "< "; + infostream<<"str_out.size()="< "; for(u32 i=0; i "; + infostream<<"str_out.size()="< "; for(u32 i=0; i::Iterator i = aa.begin(); i != aa.end(); i++) { - i->print(dstream); - dstream<print(infostream); + infostream< active_nodes; v.updateAreaWaterPressure(area, active_nodes); - v.print(dstream, VOXELPRINT_WATERPRESSURE); + v.print(infostream, VOXELPRINT_WATERPRESSURE); //s16 highest_y = -32768; /* @@ -365,8 +366,8 @@ struct TestVoxelManipulator //v.flowWater(active_nodes, 0, true, 1000); v.flowWater(active_nodes, 0, false, 1000); - dstream<<"Final result of flowWater:"<20) - dstream<<"..."; - dstream<20) - dstream<<"..."; - dstream<