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

Commit fe548ac

Browse files
maryamariyandanmoseley
authored andcommitted
Fixing fa-IR negative currency format for test GetCurrencyNegativePatterns (#27138)
Fixes #27022 and #27127
1 parent 2fcc2f8 commit fe548ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/System.Globalization/tests/NumberFormatInfo/NumberFormatInfoData.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,14 @@ internal static int[] GetCurrencyNegativePatterns(string localeName)
3939
{
4040
return (PlatformDetection.WindowsVersion < 10) ? new int[] { 3 } : new int[] { 6, 3 };
4141
}
42-
if (PlatformDetection.ICUVersion.Major >= 59)
42+
if (PlatformDetection.ICUVersion.Major == 59)
4343
{
4444
return new int[] { 8 };
4545
}
46+
else if (PlatformDetection.ICUVersion.Major > 59)
47+
{
48+
return new int[] { 1 };
49+
}
4650
else
4751
{
4852
return new int[] { 1, 0 };

0 commit comments

Comments
 (0)