@@ -200,10 +200,9 @@ FloatingPoint.test("Double/HashValueZero") {
200
200
let floatNextUpDownTests: [(Float, Float)] = [
201
201
(.nan, .nan),
202
202
(.greatestFiniteMagnitude, .infinity),
203
- (-.infinity, -.greatestFiniteMagnitude),
204
- (0x1.fffffep-1, 1.0), (1.0, 0x1.000002p+0),
205
- (-0x1p-149, -0.0), (0.0, 0x1p-149),
206
- (0x1.effffep-1, 0.96875), (0.96875, 0x1.f00002p-1),
203
+ (0x1.ffff_fe__p-1, 1.0), (1.0, 0x1.0000_02__p+0),
204
+ (0.0, .leastNonzeroMagnitude),
205
+ (0x1.efff_fe__p-1, 0x1.fp-1), (0x1.fp-1, 0x1.f000_02__p-1),
207
206
]
208
207
209
208
FloatingPoint.test("Float.nextUp, .nextDown")
@@ -218,10 +217,9 @@ FloatingPoint.test("Float.nextUp, .nextDown")
218
217
let doubleNextUpDownTests: [(Double, Double)] = [
219
218
(.nan, .nan),
220
219
(.greatestFiniteMagnitude, .infinity),
221
- (-.infinity, -.greatestFiniteMagnitude),
222
- (0x1.fffffffffffffp-1, 1.0), (1.0, 0x1.0000000000001p+0),
223
- (-0x1p-1074, -0.0), (0.0, 0x1p-1074),
224
- (0x1.effffffffffffp-1, 0.96875), (0.96875, 0x1.f000000000001p-1),
220
+ (0x1.ffff_ffff_ffff_fp-1, 1.0), (1.0, 0x1.0000_0000_0000_1p+0),
221
+ (0.0, .leastNonzeroMagnitude),
222
+ (0x1.efff_ffff_ffff_fp-1, 0x1.fp-1), (0x1.fp-1, 0x1.f000_0000_0000_1p-1),
225
223
]
226
224
227
225
FloatingPoint.test("Double.nextUp, .nextDown")
0 commit comments