From 1336d0ddb0991bd953f919d3be5d2545fc0511eb Mon Sep 17 00:00:00 2001 From: Robert Ramey Date: Mon, 9 Nov 2015 16:06:06 -0800 Subject: [PATCH] added termination messages --- test/test_cast.cpp | 1 + test/test_checked_cast.cpp | 1 + test/test_modulus.cpp | 12 ++++++------ 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/test/test_cast.cpp b/test/test_cast.cpp index 7a382ea..801fd1d 100644 --- a/test/test_cast.cpp +++ b/test/test_cast.cpp @@ -121,5 +121,6 @@ int main(int argc, char *argv[]){ EACH_TYPE1, nothing ) + std::cout << (rval ? "success!" : "failure") << std::endl; return rval ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test_checked_cast.cpp b/test/test_checked_cast.cpp index a9b1d39..19de0ec 100644 --- a/test/test_checked_cast.cpp +++ b/test/test_checked_cast.cpp @@ -103,5 +103,6 @@ int main(int argc, char *argv[]){ EACH_TYPE1, \ nothing \ ) + std::cout << (rval ? "success!" : "failure") << std::endl; return rval ? EXIT_SUCCESS : EXIT_FAILURE; } diff --git a/test/test_modulus.cpp b/test/test_modulus.cpp index 68fc060..43e22f9 100644 --- a/test/test_modulus.cpp +++ b/test/test_modulus.cpp @@ -36,7 +36,7 @@ bool test_modulus( if(expected_result != '.'){ std::cout - << "failed to detect error in division " + << "failed to detect error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " ! = "<< av1 << " % " << av2 << std::endl; @@ -50,7 +50,7 @@ bool test_modulus( catch(std::exception){ if(expected_result != 'x'){ std::cout - << "erroneously detected error in division " + << "erroneously detected error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " == "<< av1 << " % " << av2 << std::endl; @@ -77,7 +77,7 @@ bool test_modulus( if(expected_result != '.'){ std::cout - << "failed to detect error in division " + << "failed to detect error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " ! = "<< av1 << " % " << av2 << std::endl; @@ -91,7 +91,7 @@ bool test_modulus( catch(std::exception){ if(expected_result != 'x'){ std::cout - << "erroneously detected error in division " + << "erroneously detected error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " == "<< av1 << " % " << av2 << std::endl; @@ -115,7 +115,7 @@ bool test_modulus( if(expected_result != '.'){ std::cout - << "failed to detect error in division " + << "failed to detect error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " ! = "<< av1 << " % " << av2 << std::endl; @@ -129,7 +129,7 @@ bool test_modulus( catch(std::exception){ if(expected_result != 'x'){ std::cout - << "erroneously detected error in division " + << "erroneously detected error in modulus " << std::hex << result << "(" << std::dec << result << ")" << " == "<< av1 << " % " << av2 << std::endl;