about summary refs log tree commit diff
path: root/src/libcoretest/num/dec2flt/mod.rs
AgeCommit message (Collapse)AuthorLines
2017-04-03Move libXtest into libX/testsStjepan Glavina-145/+0
This change moves: 1. `libcoretest` into `libcore/tests` 2. `libcollectionstest` into `libcollections/tests` This is a follow-up to #39561.
2017-02-04Extract libcore benchmarks to a separate folderSon-57/+0
2016-02-04Enable unit tests for literals that overflow. I have no idea why this ↵Robin Kruppe-7/+5
condition was ever added.
2016-02-04Prevent the immediate panic uncovered by #31109 and add a test.Robin Kruppe-0/+11
The code there still triggers an ICE, but for different reasons (const eval unwraps the parse result).
2016-01-04Make float parsing "." return ErrToby Scrace-1/+2
This makes both of the following return Err: ".".parse::<f32>() ".".parse::<f64>() This is a [breaking-change], which the libs team have classified as a bug fix.
2015-10-14Reject "+" and "-" when parsing floats.Robin Kruppe-0/+12
Fixes #29042
2015-10-08typos: fix a grabbag of typos all over the placeCristi Cobzarenco-1/+1
2015-08-17core: Shuffle around float parsingAlex Crichton-26/+25
Stop using stability to hide the implementation details of ParseFloatError and instead move the error type into the `dec2flt` module. Also move the implementation blocks of `FromStr for f{32,64}` into `dec2flt` directly.
2015-08-12Mention that the fast path is broken without SSE.Robin Kruppe-0/+7
2015-08-08Accurate decimal-to-float parsing routines.Robin Kruppe-0/+174
This commit primarily adds implementations of the algorithms from William Clinger's paper "How to Read Floating Point Numbers Accurately". It also includes a lot of infrastructure necessary for those algorithms, and some unit tests. Since these algorithms reject a few (extreme) inputs that were previously accepted, this could be seen as a [breaking-change]