-#define CPPUNIT_ASSERT_SCRIPTS_EQUAL( theBaseName ) \
- if( !TestViewer::areScriptsEqual( theBaseName ) ) \
- CPPUNIT_FAIL( "Scripts are not equal" ); \
-
+#define CPPUNIT_ASSERT_SCRIPTS_EQUAL( theBaseName, \
+ isExpectedUtf8, \
+ isActualUtf8, \
+ theLinesToOmit ) \
+ { \
+ QString aMsg; \
+ if( !TestViewer::areScriptsEqual( \
+ theBaseName, isExpectedUtf8, \
+ isActualUtf8, theLinesToOmit, aMsg ) ) \
+ { \
+ std::string aStlMsg = "Scripts are not equal: " + \
+ aMsg.toStdString(); \
+ CPPUNIT_FAIL( aStlMsg ); \
+ } \
+ } \
+ \