5 func TestDecodeNone(t *testing.T) {
6 evaluate(t, "A:\\some\\regular\\windows\\path", "A:\\some\\regular\\windows\\path")
9 func TestDecodeSingle(t *testing.T) {
10 evaluate(t, "A:\\bl\\303\\204\\file.txt", "A:\\blÄ\\file.txt")
13 func TestDecodeMultiple(t *testing.T) {
14 evaluate(t, "A:\\fo\\130\\file\\303\\261.txt", "A:\\fo\130\\file\303\261.txt")
17 func evaluate(t *testing.T, input string, expected string) {
20 output := fs.DecodePathname(input)
22 if output != expected {
23 t.Errorf("Expecting same path, got: %s, want: %s.", output, expected)