Skip to content

Commit

Permalink
test(serde): Make parameter order more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Sep 13, 2023
1 parent 2b7c34c commit 4ffa44e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/toml/tests/testsuite/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ macro_rules! equivalent {

// Through a string equivalent
println!("to_string");
snapbox::assert_eq(t!(toml::to_string(&toml)), t!(toml::to_string(&literal)));
snapbox::assert_eq(t!(toml::to_string(&literal)), t!(toml::to_string(&toml)));
println!("literal, from_str(toml)");
assert_eq!(literal, t!(toml::from_str(&t!(toml::to_string(&toml)))));
println!("toml, from_str(toml)");
assert_eq!(toml, t!(toml::from_str(&t!(toml::to_string(&toml)))));
println!("toml, from_str(literal)");
assert_eq!(toml, t!(toml::from_str(&t!(toml::to_string(&literal)))));

// In/out of Value is equivalent
println!("try_from");
assert_eq!(t!(Table::try_from(literal.clone())), toml);
assert_eq!(toml, t!(Table::try_from(literal.clone())));
println!("try_into");
assert_eq!(literal, t!(toml.clone().try_into()));
}};
Expand Down

0 comments on commit 4ffa44e

Please sign in to comment.