Test floats that are too big/small

This commit is contained in:
Richard Feldman 2019-09-14 16:16:12 -05:00
parent a83638c2e1
commit 9b3bb7abd7
2 changed files with 30 additions and 7 deletions

View file

@ -94,8 +94,8 @@ where
}
// At this point we have a number, and will definitely succeed.
// If the number is malformed (too large to fit), we'll succeed with
// an appropriate Expr which records that.
// If the number is malformed (outside the supported range),
// we'll succeed with an appropriate Expr which records that.
let expr = if has_decimal_point {
let mut f64_buf = String::with_capacity_in(
before_decimal.len()