Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
Format PR 393 with rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Oct 26, 2023
1 parent 8032b5c commit 1e2a89c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test_de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,12 @@ fn test_numbers() {
#[test]
fn test_nan() {
// There is no negative NaN in YAML.
assert!(serde_yaml::from_str::<f32>(".nan").unwrap().is_sign_positive());
assert!(serde_yaml::from_str::<f64>(".nan").unwrap().is_sign_positive());
assert!(serde_yaml::from_str::<f32>(".nan")
.unwrap()
.is_sign_positive());
assert!(serde_yaml::from_str::<f64>(".nan")
.unwrap()
.is_sign_positive());
}

#[test]
Expand Down

0 comments on commit 1e2a89c

Please sign in to comment.