Skip to content

Commit

Permalink
update cli test of metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
dfgordon committed Jul 9, 2023
1 parent 14384fc commit 6c43114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cli_test_meta.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ fn put_get_meta_woz2() -> STDRESULT {
let output = child.wait_with_output().expect("Failed to read stdout");
// take string to object and back to get the format consistent
let expected = json::stringify_pretty(json::parse(WOZ2_EXPECTED).expect("json parsing failed"),4);
assert_eq!(&String::from_utf8(output.stdout).unwrap(),&expected);
assert_eq!(&String::from_utf8(output.stdout).unwrap().trim_end(),&expected.trim_end());

Ok(())
}
Expand Down Expand Up @@ -199,7 +199,7 @@ fn put_get_meta_woz2_filtered() -> STDRESULT {
let output = child.wait_with_output().expect("Failed to read stdout");
// take string to object and back to get the format consistent
let expected = json::stringify_pretty(json::parse(WOZ2_EXPECTED_FILTERED).expect("json parsing failed"),4);
assert_eq!(&String::from_utf8(output.stdout).unwrap(),&expected);
assert_eq!(&String::from_utf8(output.stdout).unwrap().trim_end(),&expected.trim_end());

Ok(())
}

0 comments on commit 6c43114

Please sign in to comment.