mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-17 08:32:53 -05:00
Add dedicated test for values with spaces
CC @azubieta
This commit is contained in:
@@ -187,3 +187,16 @@ TEST_F(DesktopFileReaderFixture, testDataGetter) {
|
||||
|
||||
EXPECT_EQ(data["Desktop File"], expected);
|
||||
}
|
||||
|
||||
TEST_F(DesktopFileReaderFixture, testParseLinesWithMultipleSpaces) {
|
||||
std::stringstream ss;
|
||||
ss << "[Desktop File]" << std::endl
|
||||
<< "Name= What a great name " << std::endl;
|
||||
|
||||
DesktopFileReader reader(ss);
|
||||
|
||||
auto section = reader["Desktop File"];
|
||||
EXPECT_FALSE(section.empty());
|
||||
|
||||
EXPECT_EQ(section["Name"].value(), "What a great name");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user