| ... | @@ -159,6 +159,9 @@ test "hex.special" { | ... | @@ -159,6 +159,9 @@ test "hex.special" { |
| 159 | try testing.expect(math.isPositiveInf(try parseFloat(f32, "iNf"))); | 159 | try testing.expect(math.isPositiveInf(try parseFloat(f32, "iNf"))); |
| 160 | try testing.expect(math.isPositiveInf(try parseFloat(f32, "+Inf"))); | 160 | try testing.expect(math.isPositiveInf(try parseFloat(f32, "+Inf"))); |
| 161 | try testing.expect(math.isNegativeInf(try parseFloat(f32, "-iNf"))); | 161 | try testing.expect(math.isNegativeInf(try parseFloat(f32, "-iNf"))); |
| | 162 | |
| | 163 | try testing.expect(math.isPositiveInf(try parseFloat(f32, "0x9999p9999"))); |
| | 164 | try testing.expect(math.isNegativeInf(try parseFloat(f32, "-0x9999p9999"))); |
| 162 | } | 165 | } |
| 163 | | 166 | |
| 164 | test "hex.zero" { | 167 | test "hex.zero" { |