From f7bc7d0834134bb60927e3cf0a4315227fb96dba Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 20 Oct 2019 15:05:10 +0200 Subject: [PATCH] Adapt to quote-less output Signed-off-by: Matthias Beyer --- tests/ui/src/imag_header.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/ui/src/imag_header.rs b/tests/ui/src/imag_header.rs index 5f539afb..ebcc248d 100644 --- a/tests/ui/src/imag_header.rs +++ b/tests/ui/src/imag_header.rs @@ -58,16 +58,12 @@ fn test_imag_version_as_semver_string() { let output = call(&imag_home, &["--ignore-ids", "test", "read", "imag.version"]); let version = version::version!(); - let imag_version = format!("\"{}\"", version); debug!("output = {:?}", output); assert_eq!(output.len(), 1); - assert_eq!(output[0], imag_version); + assert_eq!(output[0], version); let version = semver::Version::from_str(&version).unwrap(); - let parsed = { - let output_version = output[0].replace("\"", ""); - semver::Version::from_str(&output_version) - }; + let parsed = semver::Version::from_str(&output[0]); assert!(parsed.is_ok()); let parsed = parsed.unwrap();