mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
Test floats that are too big/small
This commit is contained in:
parent
a83638c2e1
commit
9b3bb7abd7
2 changed files with 30 additions and 7 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue