mirror of
https://github.com/subsurface/subsurface.git
synced 2025-01-19 06:15:26 +00:00
Use proper order in QCOMPARE arguments
Expected value is the second argument of QCOMPARE, having the arguments in the right order avoid confusion when looking at error message in case of test failure. Signed-off-by: Jeremie Guichard <djebrest@gmail.com>
This commit is contained in:
parent
c8065a0275
commit
7329629b6e
2 changed files with 8 additions and 8 deletions
|
@ -29,7 +29,7 @@ void TestMerge::testMergeEmpty()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
@ -53,7 +53,7 @@ void TestMerge::testMergeBackwards()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
|
|
@ -122,7 +122,7 @@ void TestParse::testParseCompareOutput()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
@ -149,7 +149,7 @@ void TestParse::testParseCompareDM4Output()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
@ -222,7 +222,7 @@ void TestParse::testParseCompareHUDCOutput()
|
|||
QStringList written = outS.readAll().split("\n");
|
||||
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
|
||||
clear_dive_file_data();
|
||||
|
@ -379,7 +379,7 @@ void TestParse::testParseCompareNewFormatOutput()
|
|||
|
||||
// currently the CSV parse fails
|
||||
// while(readin.size() && written.size()){
|
||||
// QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
// QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
// }
|
||||
|
||||
clear_dive_file_data();
|
||||
|
@ -414,7 +414,7 @@ void TestParse::testParseCompareDLDOutput()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
@ -436,7 +436,7 @@ void TestParse::testParseMerge()
|
|||
QStringList readin = orgS.readAll().split("\n");
|
||||
QStringList written = outS.readAll().split("\n");
|
||||
while(readin.size() && written.size()){
|
||||
QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
|
||||
QCOMPARE(written.takeFirst().trimmed(), readin.takeFirst().trimmed());
|
||||
}
|
||||
clear_dive_file_data();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue