| 2059 | } |
| 2060 | |
| 2061 | void AsciiFilterTest::testUtf16NotSupported() { |
| 2062 | Spreadsheet spreadsheet(QStringLiteral("test"), false); |
| 2063 | const QString& fileName = QFINDTESTDATA(QLatin1String("data/utf16.txt")); |
| 2064 | |
| 2065 | AsciiFilter filter; |
| 2066 | |
| 2067 | // preview |
| 2068 | filter.preview(fileName, 100); |
| 2069 | QCOMPARE(filter.lastError(), AsciiFilter::statusToString(AsciiFilter::Status::UTF16NotSupported)); |
| 2070 | |
| 2071 | // read |
| 2072 | filter.readDataFromFile(fileName, &spreadsheet, AbstractFileFilter::ImportMode::Replace); |
| 2073 | QCOMPARE(filter.lastError(), AsciiFilter::statusToString(AsciiFilter::Status::UTF16NotSupported)); |
| 2074 | } |
| 2075 | |
| 2076 | // ############################################################################## |
| 2077 | // ############################### skip comments ############################### |
nothing calls this directly
no test coverage detected