[libcalamares] Change in stringlist extraction also changes single-string

This commit is contained in:
Adriaan de Groot 2020-08-18 16:44:56 +02:00
parent 41e2de85b1
commit 2ac518d8b9

View File

@ -422,7 +422,7 @@ LibCalamaresTests::testVariantStringListCode()
m.insert( key, 17 );
QCOMPARE( getStringList( m, key ), QStringList {} );
m.insert( key, QString( "more strings" ) );
QCOMPARE( getStringList( m, key ), QStringList {} );
QCOMPARE( getStringList( m, key ), QStringList { "more strings" } ); // A single string **can** be considered a stringlist!
m.insert( key, QVariant {} );
QCOMPARE( getStringList( m, key ), QStringList {} );
}