Skip to content

Commit d154e47

Browse files
[release/10.0-preview4] [Test Only] Fix Idn failing tests (#115021)
* Fix Idn failing tests * Minor fix --------- Co-authored-by: Tarek Mahmoud Sayed <tarekms@microsoft.com> Co-authored-by: Tarek Mahmoud Sayed <10833894+tarekgh@users.noreply.github.com>
1 parent 49efa9b commit d154e47

File tree

1 file changed

+2
-2
lines changed
  • src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/IdnMapping/Data

1 file changed

+2
-2
lines changed

src/libraries/System.Runtime/tests/System.Globalization.Extensions.Tests/IdnMapping/Data/Factory.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private static Stream GetIdnaTestTxt()
2828
string fileName = null;
2929
if (PlatformDetection.ICUVersion >= new Version(76, 0))
3030
fileName = "IdnaTest_16.txt";
31-
else if (PlatformDetection.ICUVersion >= new Version(74, 0))
31+
else if (PlatformDetection.ICUVersion >= new Version(72, 0))
3232
fileName = "IdnaTest_15_1.txt";
3333
else if (PlatformDetection.ICUVersion >= new Version(66, 0) || PlatformDetection.IsHybridGlobalizationOnApplePlatform)
3434
fileName = "IdnaTest_13.txt";
@@ -67,7 +67,7 @@ private static IConformanceIdnaTest GetConformanceIdnaTest(string line, int line
6767
{
6868
if (PlatformDetection.ICUVersion >= new Version(76, 0))
6969
return new Unicode_16_0_IdnaTest(line, lineCount);
70-
else if (PlatformDetection.ICUVersion >= new Version(74, 0))
70+
else if (PlatformDetection.ICUVersion >= new Version(72, 0))
7171
return new Unicode_15_1_IdnaTest(line, lineCount);
7272
else if (PlatformDetection.ICUVersion >= new Version(66, 0) || PlatformDetection.IsHybridGlobalizationOnApplePlatform)
7373
return new Unicode_13_0_IdnaTest(line, lineCount);

0 commit comments

Comments
 (0)