diff --git a/proptest-regressions/number/streaming.txt b/proptest-regressions/number/streaming.txt index 44be1dc..d672df2 100644 --- a/proptest-regressions/number/streaming.txt +++ b/proptest-regressions/number/streaming.txt @@ -5,3 +5,4 @@ # It is recommended to check this file in to source control so that # everyone who runs the test benefits from these saved cases. cc 68154e0c90b20374781d3e3932bddb80e8c6a97901d0331bbd7e6daa75b794cb # shrinks to s = "0e" +cc d31506b74ad24a80485adb176039e2fa82cf58798738288a2c810952c68d7600 # shrinks to s = "inf" diff --git a/src/number/complete.rs b/src/number/complete.rs index 3ac143b..f143c3c 100644 --- a/src/number/complete.rs +++ b/src/number/complete.rs @@ -2111,7 +2111,7 @@ mod tests { #[cfg(feature = "std")] fn parse_f64(i: &str) -> IResult<&str, f64, ()> { - match recognize_float(i) { + match recognize_float_or_exceptions(i) { Err(e) => Err(e), Ok((i, s)) => { if s.is_empty() { diff --git a/src/number/streaming.rs b/src/number/streaming.rs index 56b4ded..178a698 100644 --- a/src/number/streaming.rs +++ b/src/number/streaming.rs @@ -2191,7 +2191,7 @@ mod tests { #[cfg(feature = "std")] fn parse_f64(i: &str) -> IResult<&str, f64, ()> { use crate::traits::ParseTo; - match recognize_float(i) { + match recognize_float_or_exceptions(i) { Err(e) => Err(e), Ok((i, s)) => { if s.is_empty() {