From 9618f0ebbf4b88045247c01ce8c8f58203508ebf Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Tue, 12 May 2015 16:19:40 -0400 Subject: Imported Upstream version 3.0.6 --- SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp') diff --git a/SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp b/SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp index be0204c..bd55d53 100644 --- a/SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp +++ b/SQLiteStudio3/Tests/DsvFormatsTest/tst_dsvformatstesttest.cpp @@ -26,6 +26,7 @@ class DsvFormatsTestTest : public QObject void cleanupTestCase(); void testTsv1(); void testTsv2(); + void testCsv1(); }; DsvFormatsTestTest::DsvFormatsTestTest() @@ -96,6 +97,14 @@ void DsvFormatsTestTest::testTsv2() QVERIFY2(result == sampleDeserializedData, QString("Sample: %1\nGot: %2").arg(toString(sampleDeserializedData), toString(result)).toLocal8Bit().data()); } +void DsvFormatsTestTest::testCsv1() +{ + QList result = CsvSerializer::deserialize(QString("a,\"\""), CsvFormat::DEFAULT); + + QVERIFY(result.size() == 1); + QVERIFY(result.first().size() == 2); +} + QTEST_APPLESS_MAIN(DsvFormatsTestTest) #include "tst_dsvformatstesttest.moc" -- cgit v1.2.3