mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-20 12:38:31 -05:00
add unittest for non ascii characters
This commit is contained in:
@@ -170,5 +170,18 @@ void TestTable::parseSQLKeywordInIdentifier()
|
||||
QVERIFY(tab.fields().at(1)->name() == "if");
|
||||
}
|
||||
|
||||
void TestTable::parseNonASCIIChars()
|
||||
{
|
||||
QString sSQL = "CREATE TABLE `lösung` ("
|
||||
"`Fieldöäüß` INTEGER,"
|
||||
"PRIMARY KEY(Fieldöäüß)"
|
||||
");";
|
||||
|
||||
Table tab = Table::parseSQL(sSQL);
|
||||
|
||||
QVERIFY(tab.name() == "lösung");
|
||||
QVERIFY(tab.fields().at(0)->name() == "Fieldöäüß");
|
||||
}
|
||||
|
||||
QTEST_MAIN(TestTable)
|
||||
//#include "testsqlobjects.moc"
|
||||
|
||||
@@ -14,5 +14,6 @@ private slots:
|
||||
void parseSQLForeignKey();
|
||||
void parseSQLSingleQuotes();
|
||||
void parseSQLKeywordInIdentifier();
|
||||
void parseNonASCIIChars();
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user