From fdcef6013033f0f6ae16ce97cceff965a3dd79f9 Mon Sep 17 00:00:00 2001 From: "sashakoshka@tebibyte.media" Date: Tue, 22 Oct 2024 18:03:52 -0400 Subject: [PATCH] format::xdg::ini: Fix tests --- format/xdg/ini/scan_test.ha | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/format/xdg/ini/scan_test.ha b/format/xdg/ini/scan_test.ha index d180243..aa36020 100644 --- a/format/xdg/ini/scan_test.ha +++ b/format/xdg/ini/scan_test.ha @@ -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")!, ... })); };