From: <pat...@us...> - 2012-07-04 20:32:49
|
Revision: 692 http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=692&view=rev Author: patrickh Date: 2012-07-04 20:32:43 +0000 (Wed, 04 Jul 2012) Log Message: ----------- MFT [r689]: Fix this test. Change made by Ryan Pavlik https://github.com/rpavlik/cppdom/commit/fd8143bb4b6581965aba3f66c211b25b80794637 Revision Links: -------------- http://xml-cppdom.svn.sourceforge.net/xml-cppdom/?rev=689&view=rev Modified Paths: -------------- branches/1.2/test/suite/TestCases/ErrorTest.cpp Modified: branches/1.2/test/suite/TestCases/ErrorTest.cpp =================================================================== --- branches/1.2/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:32:04 UTC (rev 691) +++ branches/1.2/test/suite/TestCases/ErrorTest.cpp 2012-07-04 20:32:43 UTC (rev 692) @@ -49,10 +49,11 @@ void ErrorTest::testCreation() { - const cppdom::Error error(cppdom::xml_instream_error, "Blah", __FILE__, __LINE__); + std::string errFile = __FILE__; + const cppdom::Error error(cppdom::xml_instream_error, "Blah", errFile, __LINE__); CPPUNIT_ASSERT(error.getError() == cppdom::xml_instream_error); - CPPUNIT_ASSERT(error.getStrError() == "error in the infile stream"); - CPPUNIT_ASSERT(error.getString() == "error in the infile stream: Blah"); - CPPUNIT_ASSERT(error.getInfo() == "test/suite/TestCases/ErrorTest.cpp:52"); + CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream"), error.getStrError()); + CPPUNIT_ASSERT_EQUAL(std::string("error in the infile stream: Blah"), error.getString()); + CPPUNIT_ASSERT_EQUAL(errFile + std::string(":53"), error.getInfo()); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |