Remove unused stringutils methods

This commit is contained in:
Lars Toenning
2022-04-25 19:32:42 +02:00
committed by Mat Sutcliffe
parent beeabb51c2
commit 0c1a5a5c97
10 changed files with 99 additions and 163 deletions

View File

@@ -33,7 +33,6 @@ namespace BlackMiscTest
void testRemove();
void testContains();
void testIndexOf();
void testSplit();
void testTimestampParsing();
void testCodecs();
void testSimplify();
@@ -61,16 +60,6 @@ namespace BlackMiscTest
QVERIFY2(indexOfChar(s, [](QChar c) { return c.isNumber(); }) == -1, "Test not index of character by predicate");
}
void CTestStringUtils::testSplit()
{
const QString s = "line one\nline two\r\nline three\n";
QStringList lines = splitLines(s);
QVERIFY2(lines.size() == 3, "Test split string into lines: correct number of lines");
QVERIFY2(lines[0] == "line one", "Test split string into lines: correct first line");
QVERIFY2(lines[1] == "line two", "Test split string into lines: correct second line");
QVERIFY2(lines[2] == "line three", "Test split string into lines: correct third line");
}
void CTestStringUtils::testTimestampParsing()
{
const QStringList dts(