mirror of
https://git.gfz-potsdam.de/naaice/iphreeqc.git
synced 2025-12-15 16:18:22 +01:00
updated dump tests (new -pressure line)
git-svn-id: svn://136.177.114.72/svn_GW/IPhreeqc/trunk@7881 1feff8c3-07ed-0310-ac33-dd36852eb9cd
This commit is contained in:
parent
c527099b18
commit
5b0c82d1c1
@ -1684,7 +1684,7 @@ void TestIPhreeqc::TestGetDumpStringLineCount(void)
|
||||
obj.SetDumpStringOn(true);
|
||||
CPPUNIT_ASSERT_EQUAL( true, obj.GetDumpStringOn() );
|
||||
CPPUNIT_ASSERT_EQUAL( 0, obj.RunAccumulated() );
|
||||
CPPUNIT_ASSERT_EQUAL( 30, obj.GetDumpStringLineCount() );
|
||||
CPPUNIT_ASSERT_EQUAL( 31, obj.GetDumpStringLineCount() );
|
||||
}
|
||||
|
||||
void TestIPhreeqc::TestGetDumpStringLine(void)
|
||||
@ -1710,12 +1710,13 @@ void TestIPhreeqc::TestGetDumpStringLine(void)
|
||||
obj.SetDumpStringOn(true);
|
||||
CPPUNIT_ASSERT_EQUAL( true, obj.GetDumpStringOn() );
|
||||
CPPUNIT_ASSERT_EQUAL( 0, obj.RunAccumulated() );
|
||||
CPPUNIT_ASSERT_EQUAL( 30, obj.GetDumpStringLineCount() );
|
||||
CPPUNIT_ASSERT_EQUAL( 31, obj.GetDumpStringLineCount() );
|
||||
|
||||
int line = 0;
|
||||
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "SOLUTION_RAW") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "-temp") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "-pressure") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "-total_h") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "-total_o") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(obj.GetDumpStringLine(line++), "-cb") != NULL);
|
||||
@ -1880,6 +1881,7 @@ void TestIPhreeqc::TestSetDumpFileName(void)
|
||||
int line = 0;
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "SOLUTION_RAW") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-temp") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-pressure") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-total_h") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-total_o") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-cb") != NULL);
|
||||
|
||||
@ -1806,7 +1806,7 @@ void TestIPhreeqcLib::TestGetDumpStringLineCount(void)
|
||||
CPPUNIT_ASSERT_EQUAL( IPQ_OK, ::SetDumpFileOn(n, 0) );
|
||||
CPPUNIT_ASSERT_EQUAL( IPQ_OK, ::SetDumpStringOn(n, 1) );
|
||||
CPPUNIT_ASSERT_EQUAL( 0, ::RunAccumulated(n) );
|
||||
CPPUNIT_ASSERT_EQUAL( 30, ::GetDumpStringLineCount(n) );
|
||||
CPPUNIT_ASSERT_EQUAL( 31, ::GetDumpStringLineCount(n) );
|
||||
|
||||
if (n >= 0)
|
||||
{
|
||||
@ -1835,12 +1835,13 @@ void TestIPhreeqcLib::TestGetDumpStringLine(void)
|
||||
CPPUNIT_ASSERT_EQUAL( IPQ_OK, ::SetDumpFileOn(n, 0) );
|
||||
CPPUNIT_ASSERT_EQUAL( IPQ_OK, ::SetDumpStringOn(n, 1) );
|
||||
CPPUNIT_ASSERT_EQUAL( 0, ::RunAccumulated(n) );
|
||||
CPPUNIT_ASSERT_EQUAL( 30, ::GetDumpStringLineCount(n) );
|
||||
CPPUNIT_ASSERT_EQUAL( 31, ::GetDumpStringLineCount(n) );
|
||||
|
||||
int line = 0;
|
||||
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "SOLUTION_RAW") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "-temp") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "-pressure") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "-total_h") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "-total_o") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(::GetDumpStringLine(n, line++), "-cb") != NULL);
|
||||
@ -2330,6 +2331,7 @@ void TestIPhreeqcLib::TestSetDumpFileName(void)
|
||||
int line = 0;
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "SOLUTION_RAW") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-temp") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-pressure") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-total_h") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-total_o") != NULL);
|
||||
CPPUNIT_ASSERT(::strstr(lines[line++].c_str(), "-cb") != NULL);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user