mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 02:50:46 -06: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"
|
||||
|
||||
Reference in New Issue
Block a user