]> git.mxchange.org Git - simgear.git/commitdiff
Throw a warning even is NDEBUG is defined
authorErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:34:11 +0000 (15:34 +0100)
committerErik Hofman <erik@ehofman.com>
Mon, 19 Dec 2011 14:34:11 +0000 (15:34 +0100)
simgear/props/propertyObject_test.cxx

index b07bb4833b1bf4b27175b3bb8e92b50df705c07f..61a050c07467f0b7fa66befa9ed4b62c5296e5a4 100644 (file)
@@ -43,9 +43,11 @@ bool testBasic()
 
   double ff(aFoo);
   assert(ff == 12.0); // comparison with literal
+  if (ff != 12.0) cout << "Error: a/foo != 12!" << endl;
   
   const float fff(12.0f);
   assert(fff == aFoo); // comparion with float value
+  if (fff != aFoo) cout << "Error: 12 != a/foo" << endl;
 
   return true;
 }