[libcalamares] Change in stringlist extraction also changes single-string
This commit is contained in:
parent
41e2de85b1
commit
2ac518d8b9
@ -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 {} );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user