summaryrefslogtreecommitdiffstats
path: root/tests/testparse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/testparse.cpp')
-rw-r--r--tests/testparse.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/testparse.cpp b/tests/testparse.cpp
index a42a53fc8..a85a7c141 100644
--- a/tests/testparse.cpp
+++ b/tests/testparse.cpp
@@ -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(), written.takeFirst());
+ QCOMPARE(readin.takeFirst().trimmed(), written.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(), written.takeFirst());
+ QCOMPARE(readin.takeFirst().trimmed(), written.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(), written.takeFirst());
+ QCOMPARE(readin.takeFirst().trimmed(), written.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(), written.takeFirst());
+// QCOMPARE(readin.takeFirst().trimmed(), written.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(), written.takeFirst());
+ QCOMPARE(readin.takeFirst().trimmed(), written.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(), written.takeFirst());
+ QCOMPARE(readin.takeFirst().trimmed(), written.takeFirst().trimmed());
}
clear_dive_file_data();
}