Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 724e21a

Browse files
Move identity check into platform block
1 parent 89e73e1 commit 724e21a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/System.Text.Encoding.CodePages/tests/EncodingCodePages.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,9 +508,9 @@ private static void ValidateDefaultEncodings()
508508
{
509509
Encoding encoding = Encoding.GetEncoding(mapping.Key);
510510
Assert.NotNull(encoding);
511-
Assert.Equal(encoding, Encoding.GetEncoding(mapping.Value));
512511
#if !PLATFORM_UNIX
513-
// Currently Unix seems to only have UTF-8 as a default...
512+
// Currently Unix returns different results depending on how the encoding is requested.
513+
Assert.Equal(encoding, Encoding.GetEncoding(mapping.Value));
514514
Assert.Equal(mapping.Value, encoding.WebName);
515515
#endif
516516
}

0 commit comments

Comments
 (0)