From 14fc11b5b8f1d19158fa46f7b868ac2417a16d2e Mon Sep 17 00:00:00 2001 From: Xiretza Date: Sat, 15 Apr 2023 14:43:37 +0000 Subject: [PATCH] wcstod: adjust tests for new implementation --- fish-rust/src/wutil/wcstod.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/fish-rust/src/wutil/wcstod.rs b/fish-rust/src/wutil/wcstod.rs index 30873d1d4..b896bc202 100644 --- a/fish-rust/src/wutil/wcstod.rs +++ b/fish-rust/src/wutil/wcstod.rs @@ -618,18 +618,16 @@ mod test { assert_eq!(test("infinity_"), Ok((f64::INFINITY, 8))); assert_eq!(test(" -INFINITY"), Ok((f64::NEG_INFINITY, 10))); assert_eq!(test("_infinity"), Err(Error::Empty)); - /* { let (f, n) = test("nan(0)").unwrap(); assert!(f.is_nan()); - assert_eq!(n, 6); + assert_eq!(n, 3); } { let (f, n) = test("nan(0)_").unwrap(); assert!(f.is_nan()); - assert_eq!(n, 6); + assert_eq!(n, 3); } - */ assert_eq!(test("_nan(0)"), Err(Error::Empty)); // We don't strip the underscores in this commented-out test case, and the behavior is // implementation-defined, so we don't actually know how many characters will get consumed. On