mirror of
https://gitee.com/openharmony/third_party_rust_nom
synced 2024-11-26 17:20:29 +00:00
Ensure prop tests treat inf/nan the same (#1600)
Co-authored-by: Ed Page <eopage@gmail.com>
This commit is contained in:
parent
400331efcb
commit
fadde7cb0d
@ -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"
|
||||
|
@ -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() {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user