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

Conversation

@eerhardt
Copy link
Member

@eerhardt eerhardt commented Dec 1, 2015

After dotnet/coreclr#2196 is merged, these tests will now be passing. This can't be merged until the corresponding coreclr PR is merged.

Note: I changed 1 set of tests for the following reasoning:
I removed the "unassigned" unicode character in the tests because the tests directly above them were already testing for "unassigned" unicode characters and ICU behavior differs from Windows behavior - Windows ignores unassigned characters, ICU doesn't.

@ellismg @stephentoub @tarekgh

I'm not sure I fixed all these tests with my current PR, but I went through all ActiveIssue #846 tests and enabled any test that passed on my machine.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test appears to be failing on Windows:

System.Globalization.Tests.CompareInfoCompare.Test160 [FAIL]
        Assert.Equal() Failure
        Expected: 1
        Actual:   -1
        Stack Trace:
           d:\j\workspace\dotnet_corefx_windows_release_prtest\src\System.Globalization\tests\CompareInfo\CompareInfoCompare.cs(534,0): at System.Globalization.Tests.CompareInfoCompare.Test(CultureInfo culture, String str1, String str2, Int32 expected, CompareOptions options)
           d:\j\workspace\dotnet_corefx_windows_release_prtest\src\System.Globalization\tests\CompareInfo\CompareInfoCompare.cs(526,0): at System.Globalization.Tests.CompareInfoCompare.Test160()

This shouldn't depend on your coreclr changes, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, this was a bad assumption on my part. It is fixed in the commit I pushed yesterday.
I had the wrong sorting direction for halfwidth and fullwidth characters in our ICU collation rules. I've changed the product code to match Windows, and updated the test.

@stephentoub
Copy link
Member

LGTM

@eerhardt
Copy link
Member Author

eerhardt commented Dec 9, 2015

@ellismg @steveharter - Here are the tests I enabled/fixed with dotnet/coreclr#2196

@eerhardt
Copy link
Member Author

@dotnet-bot test this please

eerhardt added a commit that referenced this pull request Dec 13, 2015
Enabling Globalization tests that currently pass on Unix.
@eerhardt eerhardt merged commit b334330 into dotnet:master Dec 13, 2015
@eerhardt eerhardt deleted the CompareOptions branch March 25, 2016 14:26
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants