Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling some NSDecimal subtraction tests on OSX #1908

Merged
merged 1 commit into from
Feb 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tests/unittests/Foundation/NSDecimalNumberTests.mm
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,12 @@
TEST_SUBTRACT([[[NSDecimalNumber alloc] initWithInt:(2 * USHRT_MAX)] autorelease],
[[[NSDecimalNumber alloc] initWithInt:USHRT_MAX] autorelease],
[[[NSDecimalNumber alloc] initWithInt:USHRT_MAX] autorelease]);
}

// Disabled on OSX due to the results produced by OSX 10.12 are prone to rounding issues.
// After OSX 10.11 NSDecimalComparision has been changed from Decimal struct comparison to just double value comparison.
// Which is currently not supported in our system
OSX_DISABLED_TEST(NSDecimalNumber, Subtraction3) {
TEST_SUBTRACT([[[NSDecimalNumber alloc] initWithDouble:1186805866786] autorelease],
[[[NSDecimalNumber alloc] initWithDouble:212169414290] autorelease],
[[[NSDecimalNumber alloc] initWithDouble:974636452496] autorelease]);
Expand Down