format::xdg::ini: Fix tests

This commit is contained in:
Sasha Koshka 2024-10-22 18:03:52 -04:00
parent 4861950176
commit fdcef60130

View File

@ -34,12 +34,12 @@ use os;
locale::parse("en_US")!),
entry_new(
h_dac, "Name", "Zweep zoop flooble glorp",
locale::parse("xx_XX.UTF-8")!),
locale::parse("xx_XX")!),
"Another comment": comment,
entry_new(h_dac, "Icon", "fooview-new", locale::c),
];
let file = os::open("format/desktop_entry/test_data/foo.desktop")!;
let file = os::open("format/xdg/ini/test_data/foo.desktop")!;
defer io::close(file)!;
let scanne = scan(file);
defer finish(&scanne);
@ -83,11 +83,11 @@ use os;
locale::parse("en_US")!),
entry_new(
h_dac, "Name", "Zweep zoop flooble glorp",
locale::parse("xx_XX.UTF-8")!),
locale::parse("xx_XX")!),
entry_new(h_dac, "Icon", "fooview-new", locale::c),
];
let file = os::open("format/desktop_entry/test_data/foo.desktop")!;
let file = os::open("format/xdg/ini/test_data/foo.desktop")!;
defer io::close(file)!;
let scanne = scan(file);
defer finish(&scanne);
@ -109,7 +109,7 @@ use os;
assert(entry_equal(parse_entry("hello[sr_YU.UTF-8@Latn]=world")!, entry {
key = "hello",
value = "world",
locale = locale::parse("sr_YU.UTF-8@Latn")!,
locale = locale::parse("sr_YU@Latn")!,
...
}));
};