From 4ffa44ec16155fa73120538eb993dd489552f3ea Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 12 Sep 2023 17:11:53 -0500 Subject: [PATCH] test(serde): Make parameter order more consistent --- crates/toml/tests/testsuite/serde.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/toml/tests/testsuite/serde.rs b/crates/toml/tests/testsuite/serde.rs index d8d3d84d..ffbef7aa 100644 --- a/crates/toml/tests/testsuite/serde.rs +++ b/crates/toml/tests/testsuite/serde.rs @@ -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())); }};