aboutsummaryrefslogtreecommitdiffstats
path: root/checks/check.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-03 22:08:48 +0000
committerlloyd <[email protected]>2010-09-03 22:08:48 +0000
commit6948821a25bcca3efea8eb2c32d5a0cb9d627efe (patch)
treed7e6066e5c4c2453744f1f34bcad701baee5c45f /checks/check.cpp
parent0bdec08ee5330c862e04b4910ffef1ec2b29374f (diff)
If the numeric_limits tests fail, make the output a little less dramatic
Diffstat (limited to 'checks/check.cpp')
-rw-r--r--checks/check.cpp8
1 files changed, 4 insertions, 4 deletions
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<T>::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<T>::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<T>::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<T>::is_signed
<< std::endl;
passed = false;
@@ -73,7 +73,7 @@ bool test(const char* type, int digits, bool is_signed)
if(std::numeric_limits<T>::digits != digits && digits != 0)
{
- std::cout << "ERROR: numeric_limits<" << type << ">::digits == "
+ std::cout << "Warning: numeric_limits<" << type << ">::digits == "
<< std::numeric_limits<T>::digits
<< " expected " << digits << std::endl;
passed = false;