camino-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Camino-devel] camino/src/common PhilAsserts.cpp


From: Philippe Fremy
Subject: [Camino-devel] camino/src/common PhilAsserts.cpp
Date: Tue, 21 Jan 2003 17:28:13 -0500

CVSROOT:        /cvsroot/camino
Module name:    camino
Changes by:     Philippe Fremy <address@hidden> 03/01/21 17:28:13

Modified files:
        src/common     : PhilAsserts.cpp 

Log message:
        new line after failure

Patches:
Index: camino/src/common/PhilAsserts.cpp
diff -u camino/src/common/PhilAsserts.cpp:1.1 
camino/src/common/PhilAsserts.cpp:1.2
--- camino/src/common/PhilAsserts.cpp:1.1       Sun Jan 19 17:33:11 2003
+++ camino/src/common/PhilAsserts.cpp   Tue Jan 21 17:28:13 2003
@@ -31,7 +31,7 @@
        sprintf( tmp, "%ld (0x%lX)", actual, actual );
        s += tmp;
        s += " instead of expected ";
-       sprintf( tmp, "%ld (0x%lX)\n", expected, expected );
+       sprintf( tmp, "%ld (0x%lX)\n\n", expected, expected );
        s += tmp;
     throw CppUnit::Exception (s, CppUnit::SourceLine(fileName, lineNumber)); 
 }
@@ -44,7 +44,7 @@
        char tmp[TMP_SIZE];
        std::string s;
        s = "'" + actualExpr +  "' should not be ";
-       sprintf( tmp, "%ld (0x%lX)\n", actual, actual );
+       sprintf( tmp, "%ld (0x%lX)\n\n", actual, actual );
        s += tmp;
     throw CppUnit::Exception (s, CppUnit::SourceLine(fileName, lineNumber)); 
 }
@@ -66,7 +66,7 @@
        s += " and is not in the interval ";
        sprintf( tmp, "[ %ld , %ld ] ", expected - delta, expected + delta );
        s += tmp;
-       sprintf( tmp, "%ld +- %ld\n", expected, delta );
+       sprintf( tmp, "%ld +- %ld\n\n", expected, delta );
        s += tmp;
     throw CppUnit::Exception (s, CppUnit::SourceLine(fileName, lineNumber)); 
 }
@@ -81,7 +81,7 @@
        if (expected.compare( actual ) == 0) return;
        std::string s;
        s = "'" + actualExpr +  "' is '" + actual;
-       s += "' instead of expected '" + expected + "'\n";
+       s += "' instead of expected '" + expected + "'\n\n";
     throw CppUnit::Exception (s, CppUnit::SourceLine(fileName, lineNumber)); 
 }
 
@@ -110,7 +110,7 @@
 {
        if (notExpected.compare( actual ) != 0) return;
        std::string s;
-       s = "'" + actualExpr +  "' should not be  '" + actual + "'\n";
+       s = "'" + actualExpr +  "' should not be  '" + actual + "'\n\n";
     throw CppUnit::Exception (s, CppUnit::SourceLine(fileName, lineNumber)); 
 }
 
@@ -119,7 +119,7 @@
 {
        if (s.find( sub ) > 0) return;
        std::string e;
-       e = "'" + expr +  "' is '" + s + "' and does not contain '" + sub + 
"'\n";
+       e = "'" + expr +  "' is '" + s + "' and does not contain '" + sub + 
"'\n\n";
        throw CppUnit::Exception( e, CppUnit::SourceLine(fileName, lineNumber));
 }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]