mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-04-29 19:53:45 -05:00
Recognize broken section headings, mk. 1
This commit is contained in:
@@ -201,3 +201,11 @@ TEST_F(DesktopFileReaderFixture, testParseLinesWithMultipleSpaces) {
|
||||
|
||||
EXPECT_EQ(section["Name"].value(), "What a great name");
|
||||
}
|
||||
|
||||
TEST_F(DesktopFileReaderFixture, testReadBrokenSectionHeader) {
|
||||
std::stringstream ins;
|
||||
ins << "[Desktop Entry" << std::endl
|
||||
<< "test=test" << std::endl;
|
||||
|
||||
ASSERT_THROW(DesktopFileReader reader(ins), ParseError);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user