diff data/fileio/test/CSVStreamWriterTest.h @ 1679:0d89abd631ac single-point

Re-add the toDelimitedDataString stuff
author Chris Cannam
date Thu, 28 Mar 2019 16:03:36 +0000
parents 513192aa9b03
children 21c792334c2e
line wrap: on
line diff
--- a/data/fileio/test/CSVStreamWriterTest.h	Thu Mar 28 13:37:09 2019 +0000
+++ b/data/fileio/test/CSVStreamWriterTest.h	Thu Mar 28 16:03:36 2019 +0000
@@ -303,7 +303,9 @@
 //        qDebug("Create Expected Output\n");
 
         // NB. removed end line break
-        const auto expectedOutput = notes.toDelimitedDataString(",").trimmed();
+        const auto expectedOutput =
+            notes.toDelimitedDataString(",", {}, 0, notes.getEndFrame())
+            .trimmed();
 
         StubReporter reporter { []() -> bool { return false; } };
         std::ostringstream oss;
@@ -321,6 +323,7 @@
 //        qDebug("\n->>%s<<-\n", expectedOutput.toLocal8Bit().data());
 //        qDebug("\n->>%s<<-\n", oss.str().c_str());
         QVERIFY( wroteSparseModel == true );
+        QVERIFY( oss.str() != std::string() );
         QVERIFY( oss.str() == expectedOutput.toStdString() );
     }
 };