fn testWindowsParsePathHarmony(wtf8: []const u8) !void wtf8: []const u8674
675
676
677
678
679
680
681
682
683
684
685
686
687
688fn testWindowsParsePathHarmony(wtf8: []const u8) !void {
var wtf16_buf: [256]u16 = undefined;
const wtf16_len = try std.unicode.wtf8ToWtf16Le(&wtf16_buf, wtf8);
const wtf16 = wtf16_buf[0..wtf16_len];
const wtf8_parsed = parsePathWindows(u8, wtf8);
const wtf16_parsed = parsePathWindows(u16, wtf16);
var wtf8_buf: [256]u8 = undefined;
const wtf16_root_as_wtf8_len = std.unicode.wtf16LeToWtf8(&wtf8_buf, wtf16_parsed.root);
const wtf16_root_as_wtf8 = wtf8_buf[0..wtf16_root_as_wtf8_len];
try std.testing.expectEqual(wtf8_parsed.kind, wtf16_parsed.kind);
try std.testing.expectEqualStrings(wtf8_parsed.root, wtf16_root_as_wtf8);
}