summaryrefslogtreecommitdiff
path: root/uunit.h
diff options
context:
space:
mode:
Diffstat (limited to 'uunit.h')
-rw-r--r--uunit.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/uunit.h b/uunit.h
index 44dc2a0..97f3ecc 100644
--- a/uunit.h
+++ b/uunit.h
@@ -173,7 +173,7 @@ protected:
{
if(!value)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "assertion failed" << std::endl <<
"- Expression: " << expr << "" << std::endl;
throw test_result{"", file, line, ss.str()};
@@ -188,7 +188,7 @@ protected:
{
if(std::fabs(expected - value) > 0.0000001)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "equality assertion failed" << std::endl <<
"- Expected: " << expected << "" << std::endl <<
"- Actual : " << value << "" << std::endl;
@@ -201,7 +201,7 @@ protected:
{
if(expected != value)
{
- std::stringstream ss;
+ std::ostringstream ss;
ss << "equality assertion failed" << std::endl <<
"- Expected: " << expected << "" << std::endl <<
"- Actual : " << value << "" << std::endl;