From 6948821a25bcca3efea8eb2c32d5a0cb9d627efe Mon Sep 17 00:00:00 2001 From: lloyd Date: Fri, 3 Sep 2010 22:08:48 +0000 Subject: If the numeric_limits tests fail, make the output a little less dramatic --- checks/check.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'checks/check.cpp') diff --git a/checks/check.cpp b/checks/check.cpp index d2a05ab35..cacc07cb0 100644 --- a/checks/check.cpp +++ b/checks/check.cpp @@ -46,7 +46,7 @@ bool test(const char* type, int digits, bool is_signed) { if(std::numeric_limits::is_specialized == false) { - std::cout << "WARNING: Could not check parameters of " << type + std::cout << "Warning: Could not check parameters of " << type << " in std::numeric_limits" << std::endl; // assume it's OK (full tests will catch it later) @@ -58,14 +58,14 @@ bool test(const char* type, int digits, bool is_signed) if(std::numeric_limits::is_integer == false) { - std::cout << "WARN: std::numeric_limits<> says " << type + std::cout << "Warning: std::numeric_limits<> says " << type << " is not an integer" << std::endl; passed = false; } if(std::numeric_limits::is_signed != is_signed) { - std::cout << "ERROR: numeric_limits<" << type << ">::is_signed == " + std::cout << "Warning: numeric_limits<" << type << ">::is_signed == " << std::boolalpha << std::numeric_limits::is_signed << std::endl; passed = false; @@ -73,7 +73,7 @@ bool test(const char* type, int digits, bool is_signed) if(std::numeric_limits::digits != digits && digits != 0) { - std::cout << "ERROR: numeric_limits<" << type << ">::digits == " + std::cout << "Warning: numeric_limits<" << type << ">::digits == " << std::numeric_limits::digits << " expected " << digits << std::endl; passed = false; -- cgit v1.2.3