5 Commits

Author SHA1 Message Date
Laytan Laats
ebc63a7355 add hexfloat (0h) parsing to strconv 2025-05-10 15:11:52 +02:00
Feoramund
25feff3eb4 Permit parsing of incomplete infinity but do not return true
To clarify, `parse_f64` will indeed take `infi` to mean `+Inf` and
return that as the value, but it will not return `ok = true`. It treats
it as `inf` followed by any other trailing character.

`parse_f64_prefix` is the lenient one which will return true so long as
it finds some meaningful value.
2024-06-04 18:55:13 -04:00
Feoramund
1fc6ff91b2 Add test for infinity with trailing characters 2024-06-04 18:55:13 -04:00
Feoramund
c656a9e4cd Fix and subsume test_issue_2087 into strconv test suite
The full "infinity" strings were expected to be partial consumes, but
this is not the case. That has been fixed and the relevant extra tests
from that file have been added to this test suite.

Fixes #2670
2024-06-04 14:23:48 -04:00
Feoramund
7d670f6562 Add initial test suite for core:strconv 2024-06-04 14:20:31 -04:00