mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-16 00:28:23 +01:00
Added line count check
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/branches/ErrorHandling@5924 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
2dc918693b
commit
0f2719f915
@ -2037,7 +2037,7 @@ void TestIPhreeqc::TestSetOutputFileName(void)
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL( true, ::FileExists(OUTPUT_FILENAME) );
|
||||
|
||||
std::string lines[100];
|
||||
std::string lines[101];
|
||||
std::ifstream ifs(OUTPUT_FILENAME);
|
||||
|
||||
size_t i = 0;
|
||||
@ -2046,6 +2046,8 @@ void TestIPhreeqc::TestSetOutputFileName(void)
|
||||
++i;
|
||||
}
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL( 98u, i );
|
||||
|
||||
int line = 0;
|
||||
#if defined(_MSC_VER)
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("------------------------------------"), lines[line++] );
|
||||
@ -2166,7 +2168,7 @@ void TestIPhreeqc::TestSetOutputFileName(void)
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("Beginning of initial solution calculations."), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("-------------------------------------------"), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string(""), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("Initial solution 1. "), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("Initial solution 1. "), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string(""), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string("-----------------------------Solution composition------------------------------"), lines[line++] );
|
||||
CPPUNIT_ASSERT_EQUAL( std::string(""), lines[line++] );
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user