Skip to content

Commit

Permalink
Exclude tests for Apple platforms on hybrid mode (#97550)
Browse files Browse the repository at this point in the history
Exclude tests for Apple platforms on hybrid mode
  • Loading branch information
mkhamoyan authored Jan 29, 2024
1 parent e5d59bd commit 7101b8c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ public static IEnumerable<object[]> HashCodeLocalized_TestData()

if (!PlatformDetection.IsHybridGlobalizationOnBrowser)
{
yield return new object[] { new CultureInfo("en-GB").CompareInfo, "100", "100!", CompareOptions.IgnoreSymbols }; // HG: equal: True, hashCodesEqual: False
if (PlatformDetection.IsNotHybridGlobalizationOnApplePlatform)
yield return new object[] { new CultureInfo("en-GB").CompareInfo, "100", "100!", CompareOptions.IgnoreSymbols }; // HG: equal: True, hashCodesEqual: False
yield return new object[] { new CultureInfo("ja-JP").CompareInfo, "\u30A2", "\u3042", CompareOptions.IgnoreKanaType }; // HG: equal: True, hashCodesEqual: False
yield return new object[] { new CultureInfo("en-GB").CompareInfo, "caf\u00E9", "cafe\u0301", CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreKanaType }; // HG: equal: True, hashCodesEqual: False
}
Expand Down Expand Up @@ -99,6 +100,7 @@ public static IEnumerable<object[]> CheckHashingOfSkippedChars_TestData()

[ConditionalTheory(typeof(PlatformDetection), nameof(PlatformDetection.IsIcuGlobalization))]
[MemberData(nameof(CheckHashingOfSkippedChars_TestData))]
[ActiveIssue("https://github.com/dotnet/runtime/issues/95338", typeof(PlatformDetection), nameof(PlatformDetection.IsHybridGlobalizationOnApplePlatform))]
public void CheckHashingOfSkippedChars(char character, CompareInfo cmpInfo)
{
string str1 = $"a{character}b";
Expand Down

0 comments on commit 7101b8c

Please sign in to comment.