Skip to content

Commit

Permalink
Fix the browser AOT tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh committed Jul 1, 2021
1 parent a74646e commit 8c503e1
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,17 @@ private void TestInvariantGlobalization(BuildArgs buildArgs, bool? invariantGlob
public class TestClass {
public static int Main()
{
var culture = new CultureInfo(""es-ES"", false);
CultureInfo culture;
try
{
culture = new CultureInfo(""es-ES"", false);
// https://github.com/dotnet/runtime/blob/main/docs/design/features/globalization-invariant-mode.md#cultures-and-culture-data
Console.WriteLine($""{culture.LCID == 0x1000} - {culture.NativeName}"");
}
catch
{
culture = new CultureInfo("""", false);
}
Console.WriteLine($""{culture.LCID == CultureInfo.InvariantCulture.LCID} - {culture.NativeName}"");
return 42;
}
}";
Expand Down

0 comments on commit 8c503e1

Please sign in to comment.