From 1248cac39b65feb1659d4a1cf113e2cbdb2438cf Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Wed, 1 Aug 2018 00:44:27 +0200 Subject: [PATCH] version: Fix tests. --- src/version.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/version.rs b/src/version.rs index c625892..02979f3 100644 --- a/src/version.rs +++ b/src/version.rs @@ -46,9 +46,9 @@ mod tests { use compare_elements::NamespaceAwareCompare; #[test] - fn test_simple() { + fn simple() { let elem: Element = "xmpp-rs0.3.0".parse().unwrap(); - let version = Version::try_from(elem).unwrap(); + let version = VersionResult::try_from(elem).unwrap(); assert_eq!(version.name, String::from("xmpp-rs")); assert_eq!(version.version, String::from("0.3.0")); assert_eq!(version.os, None); @@ -56,7 +56,7 @@ mod tests { #[test] fn serialisation() { - let version = Version { + let version = VersionResult { name: String::from("xmpp-rs"), version: String::from("0.3.0"), os: None,