Skip to content

Commit

Permalink
add failing test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
dezyh committed Jan 2, 2024
1 parent 1ecfccd commit 2ce3026
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/ascii/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,22 @@ mod complete {
Err(ErrMode::Cut(InputError::new("", ErrorKind::Slice)))
);

let mut special_test_cases = vec!["NaN", "inf", "infinity"];
let mut special_test_cases = vec![
"nan",
"NaN",
"inf",
"Inf",
"infinity",
"Infinity",
"-inf",
"-Inf",
"-infinity",
"-Infinity",
"+inf",
"+Inf",
"+infinity",
"+Infinity",
];

// As these float variants are not comparable, check for equality by comparing their
// properties. This is enough to ensure matching/parsing mimics the standard library.
Expand Down

0 comments on commit 2ce3026

Please sign in to comment.