diff --git a/Tests/base/NSNumber/test03.m b/Tests/base/NSNumber/test03.m index bcd91f9d8..215ce41bd 100644 --- a/Tests/base/NSNumber/test03.m +++ b/Tests/base/NSNumber/test03.m @@ -11,38 +11,38 @@ int main() NSComparisonResult result; // Test comparing positive numbers - n1 = [NSDecimalNumber decimalNumberWithString:@"0.05"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"0.10"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"0.05" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"0.10" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedAscending, "0.05 < 0.10"); // Test comparing negative numbers - n1 = [NSDecimalNumber decimalNumberWithString:@"-0.10"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"-0.05"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"-0.10" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"-0.05" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedAscending, "-0.10 < -0.05"); // Test comparing a positive and a negative number - n1 = [NSDecimalNumber decimalNumberWithString:@"-0.10"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"0.10"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"-0.10" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"0.10" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedAscending, "-0.10 < 0.10"); // Test comparing zeros - n1 = [NSDecimalNumber decimalNumberWithString:@"0.00"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"0.00"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"0.00" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"0.00" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedSame, "0.00 == 0.00"); // Test comparing zero with a positive number - n1 = [NSDecimalNumber decimalNumberWithString:@"0.00"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"0.02"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"0.00" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"0.02" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedAscending, "0.00 < 0.02"); // Test comparing zero with a negative number - n1 = [NSDecimalNumber decimalNumberWithString:@"-0.02"]; - n2 = [NSDecimalNumber decimalNumberWithString:@"0.00"]; + n1 = [NSDecimalNumber decimalNumberWithString:@"-0.02" locale:nil]; + n2 = [NSDecimalNumber decimalNumberWithString:@"0.00" locale:nil]; result = [n1 compare:n2]; PASS(result == NSOrderedAscending, "-0.02 < 0.00");