From 2b7c34c900aa2622660af495e126a75b71916cba Mon Sep 17 00:00:00 2001 From: Ed Page Date: Tue, 12 Sep 2023 17:09:40 -0500 Subject: [PATCH] test(serde): Focus on string serialization first --- crates/toml/tests/testsuite/serde.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/toml/tests/testsuite/serde.rs b/crates/toml/tests/testsuite/serde.rs index ea6a8b01..d8d3d84d 100644 --- a/crates/toml/tests/testsuite/serde.rs +++ b/crates/toml/tests/testsuite/serde.rs @@ -21,12 +21,6 @@ macro_rules! equivalent { let toml = $toml; let literal = $literal; - // In/out of Value is equivalent - println!("try_from"); - assert_eq!(t!(Table::try_from(literal.clone())), toml); - println!("try_into"); - assert_eq!(literal, t!(toml.clone().try_into())); - // Through a string equivalent println!("to_string"); snapbox::assert_eq(t!(toml::to_string(&toml)), t!(toml::to_string(&literal))); @@ -34,6 +28,12 @@ macro_rules! equivalent { 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))))); + + // In/out of Value is equivalent + println!("try_from"); + assert_eq!(t!(Table::try_from(literal.clone())), toml); + println!("try_into"); + assert_eq!(literal, t!(toml.clone().try_into())); }}; }