Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcdejonge committed Jan 29, 2025
1 parent ac048e6 commit 35be971
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -273,13 +273,19 @@ mod tests {
#[test]
fn parse_f32() {
assert_eq!(Ok::<_, ()>(6e8), f32::parse_complete("6e8"));
assert_eq!(Ok::<_, ()>(3.14e-2), f32::parse_complete(b"3.14e-2".as_ref()));
assert_eq!(
Ok::<_, ()>(3.14e-2),
f32::parse_complete(b"3.14e-2".as_ref())
);
}

#[test]
fn parse_f64() {
assert_eq!(Ok::<_, ()>(6e8), f64::parse_complete("6e8"));
assert_eq!(Ok::<_, ()>(3.14e-2), f64::parse_complete(b"3.14e-2".as_ref()));
assert_eq!(
Ok::<_, ()>(3.14e-2),
f64::parse_complete(b"3.14e-2".as_ref())
);
}
}

Expand Down

0 comments on commit 35be971

Please sign in to comment.