From f6d7a51fff0a909ee1277c479b6f865c898de06e Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sat, 3 Sep 2022 11:58:20 +0200 Subject: [PATCH] Use similar-asserts for test cases --- instant-xml/Cargo.toml | 3 +++ instant-xml/tests/all.rs | 2 ++ 2 files changed, 5 insertions(+) diff --git a/instant-xml/Cargo.toml b/instant-xml/Cargo.toml index 9cd6f33..2c0974d 100644 --- a/instant-xml/Cargo.toml +++ b/instant-xml/Cargo.toml @@ -9,3 +9,6 @@ license = "Apache-2.0 OR MIT" macros = { package = "instant-xml-macros", version = "0.1", path = "../instant-xml-macros" } thiserror = "1.0.29" xmlparser = "0.13.3" + +[dev-dependencies] +similar-asserts = "1.4.2" diff --git a/instant-xml/tests/all.rs b/instant-xml/tests/all.rs index 68e044a..37a82f8 100644 --- a/instant-xml/tests/all.rs +++ b/instant-xml/tests/all.rs @@ -1,5 +1,7 @@ use std::borrow::Cow; +use similar_asserts::assert_eq; + use instant_xml::{Error, FromXml, ToXml}; #[derive(Debug, Eq, PartialEq, ToXml)]