@@ -1149,10 +1149,10 @@ class TestNSNumber : XCTestCase {
1149
1149
XCTAssertEqual ( NSNumber ( value: Double . zero) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " 0 " )
1150
1150
XCTAssertEqual ( NSNumber ( value: Double . nan) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " NaN " )
1151
1151
XCTAssertEqual ( NSNumber ( value: Double . leastNormalMagnitude) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " 2.225073858507201E-308 " )
1152
- // Currently disabled as the latest ICU (62+) which uses Google's dobule-conversion library currently converts Double.leastNonzeroMagnitude to 0
1153
- // although the ICU61 version correctly converted it to 5E-324 - Test left in to check for the bug being fixed in the future.
1152
+ // Currently disabled as the latest ICU (62+) which uses Google's double-conversion library currently converts Double.leastNonzeroMagnitude to 0
1153
+ // although ICU61 version correctly converted it to 5E-324 - Test left in to check for the bug being fixed in the future.
1154
+ // This test works in ICU67 so re-enable it after upgrading.
1154
1155
//XCTAssertEqual(NSNumber(value: Double.leastNonzeroMagnitude).description(withLocale: Locale(identifier: "en_GB")), "5E-324")
1155
- XCTAssertEqual ( NSNumber ( value: Double . leastNonzeroMagnitude) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " 0E+00 " )
1156
1156
XCTAssertEqual ( NSNumber ( value: 2 * Double. leastNonzeroMagnitude) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " 1E-323 " )
1157
1157
XCTAssertEqual ( NSNumber ( value: Double . greatestFiniteMagnitude) . description ( withLocale: Locale ( identifier: " en_GB " ) ) , " 1.797693134862316E+308 " )
1158
1158
@@ -1197,10 +1197,10 @@ class TestNSNumber : XCTestCase {
1197
1197
XCTAssertEqual ( NSNumber ( value: Double . zero) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " 0 " )
1198
1198
XCTAssertEqual ( NSNumber ( value: Double . nan) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " NaN " )
1199
1199
XCTAssertEqual ( NSNumber ( value: Double . leastNormalMagnitude) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " 2,225073858507201E-308 " )
1200
- // Currently disabled as the latest ICU (62+) which uses Google's dobule-conversion library currently converts Double.leastNonzeroMagnitude to 0
1201
- // although the ICU61 version correctly converted it to 5E-324 - Test left in to check for the bug being fixed in the future.
1200
+ // Currently disabled as the latest ICU (62+) which uses Google's double-conversion library currently converts Double.leastNonzeroMagnitude to 0
1201
+ // although ICU61 version correctly converted it to 5E-324 - Test left in to check for the bug being fixed in the future.
1202
+ // This test works in ICU67 so re-enable it after upgrading.
1202
1203
//XCTAssertEqual(NSNumber(value: Double.leastNonzeroMagnitude).description(withLocale: Locale(identifier: "de_DE")), "5E-324")
1203
- XCTAssertEqual ( NSNumber ( value: Double . leastNonzeroMagnitude) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " 0E+00 " )
1204
1204
XCTAssertEqual ( NSNumber ( value: 2 * Double. leastNonzeroMagnitude) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " 1E-323 " )
1205
1205
XCTAssertEqual ( NSNumber ( value: Double . greatestFiniteMagnitude) . description ( withLocale: Locale ( identifier: " de_DE " ) ) , " 1,797693134862316E+308 " )
1206
1206
}
0 commit comments