Skip to content

Commit 91d91d1

Browse files
committed
Fix Unix tests
1 parent f18d2c2 commit 91d91d1

File tree

1 file changed

+8
-8
lines changed
  • src/libraries/System.Private.Uri/tests/FunctionalTests

1 file changed

+8
-8
lines changed

src/libraries/System.Private.Uri/tests/FunctionalTests/UriTests.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -744,8 +744,8 @@ public static IEnumerable<object[]> FilePathHandlesNonAscii_TestData()
744744
if (PlatformDetection.IsNotWindows)
745745
{
746746
// Unix absolute file path
747-
yield return new object[] { "/\u00FCri/", "/\u00FCri/", "/%C3%BCri/", "file:///%C3%BCri/", "/\u00FCri/" };
748-
yield return new object[] { "/a/b\uD83D\uDE1F/Foo.cs", "/a/b\uD83D\uDE1F/Foo.cs", "/a/b%F0%9F%98%9F/Foo.cs", "file:///a/b%F0%9F%98%9F/Foo.cs", "a/b\uD83D\uDE1F/Foo.cs" };
747+
yield return new object[] { "/\u00FCri/", "file:///\u00FCri/", "/%C3%BCri/", "file:///%C3%BCri/", "/\u00FCri/" };
748+
yield return new object[] { "/a/b\uD83D\uDE1F/Foo.cs", "file:///a/b\uD83D\uDE1F/Foo.cs", "/a/b%F0%9F%98%9F/Foo.cs", "file:///a/b%F0%9F%98%9F/Foo.cs", "/a/b\uD83D\uDE1F/Foo.cs" };
749749
}
750750

751751
// Absolute fie path
@@ -770,13 +770,13 @@ public static IEnumerable<object[]> FilePathHandlesNonAscii_TestData()
770770
}
771771
else
772772
{
773-
yield return new object[] { "/a/?b/c\u00FC/", "/a/?b/c\u00FC/", "/a/?b/c%C3%BC/", "file:///a/?b/c%C3%BC/", "/a/?b/c\u00FC/" };
774-
yield return new object[] { "/a/#b/c\u00FC/", "/a/#b/c\u00FC/", "/a/#b/c%C3%BC/", "file:///a/#b/c%C3%BC/", "/a/#b/c\u00FC/" };
775-
yield return new object[] { "/a/?b/#c/d\u00FC/", "/a/#b/c\u00FC/", "/a/?b/#c/d%C3%BC/", "file:///a/?b/#c/d%C3%BC/", "/a/?b/#c/d\u00FC/" };
773+
yield return new object[] { "/a/?b/c\u00FC/", "file:///a/%3Fb/c\u00FC/", "/a/%3Fb/c%C3%BC/", "file:///a/%3Fb/c%C3%BC/", "/a/?b/c\u00FC/" };
774+
yield return new object[] { "/a/#b/c\u00FC/", "file:///a/%23b/c\u00FC/", "/a/%23b/c%C3%BC/", "file:///a/%23b/c%C3%BC/", "/a/#b/c\u00FC/" };
775+
yield return new object[] { "/a/?b/#c/d\u00FC/", "file:///a/%3Fb/%23c/d\u00FC/", "/a/%3Fb/%23c/d%C3%BC/", "file:///a/%3Fb/%23c/d%C3%BC/", "/a/?b/#c/d\u00FC/" };
776776

777-
yield return new object[] { "file:///a/?b/c\u00FC/", "file:///a/?b/c\u00FC/", "/a/?b/c%C3%BC/", "file:///a/?b/c%C3%BC/", "/a/?b/c\u00FC/" };
778-
yield return new object[] { "file:///a/#b/c\u00FC/", "file:///a/#b/c\u00FC/", "/a/#b/c%C3%BC/", "file:///a/#b/c%C3%BC/", "/a/#b/c\u00FC/" };
779-
yield return new object[] { "file:///a/?b/#c/d\u00FC/", "file:///a/?b/#c/d\u00FC/", "/a/?b/#c/d%C3%BC/", "file:///a/?b/#c/d%C3%BC/", "/a/?b/#c/d\u00FC/" };
777+
yield return new object[] { "file:///a/?b/c\u00FC/", "file:///a/?b/c\u00FC/", "/a/", "file:///a/?b/c%C3%BC/", "/a/" };
778+
yield return new object[] { "file:///a/#b/c\u00FC/", "file:///a/#b/c\u00FC/", "/a/", "file:///a/#b/c%C3%BC/", "/a/" };
779+
yield return new object[] { "file:///a/?b/#c/d\u00FC/", "file:///a/?b/#c/d\u00FC/", "/a/", "file:///a/?b/#c/d%C3%BC/", "/a/" };
780780
}
781781
}
782782

0 commit comments

Comments
 (0)