Skip to content

Commit

Permalink
Fix bad crate name from 8d51e8
Browse files Browse the repository at this point in the history
  • Loading branch information
acatton committed May 3, 2024
1 parent 8d51e80 commit 5f7ea29
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -730,25 +730,25 @@ fn test_enum_untagged() {
// A
{
let expected = UntaggedEnum::A { r#match: true };
let deserialized: UntaggedEnum = serde_yaml::from_str("match: True").unwrap();
let deserialized: UntaggedEnum = serde_yaml_ng::from_str("match: True").unwrap();
assert_eq!(expected, deserialized);
}
// AB
{
let expected = UntaggedEnum::AB { r#match: "T".to_owned() };
let deserialized: UntaggedEnum = serde_yaml::from_str("match: T").unwrap();
let deserialized: UntaggedEnum = serde_yaml_ng::from_str("match: T").unwrap();
assert_eq!(expected, deserialized);
}
// B
{
let expected = UntaggedEnum::B { r#match: true };
let deserialized: UntaggedEnum = serde_yaml::from_str("if: True").unwrap();
let deserialized: UntaggedEnum = serde_yaml_ng::from_str("if: True").unwrap();
assert_eq!(expected, deserialized);
}
// C
{
let expected = UntaggedEnum::C("match".to_owned());
let deserialized: UntaggedEnum = serde_yaml::from_str("match").unwrap();
let deserialized: UntaggedEnum = serde_yaml_ng::from_str("match").unwrap();
assert_eq!(expected, deserialized);
}
}

0 comments on commit 5f7ea29

Please sign in to comment.