Skip to content

Commit

Permalink
Remove broken unit test in favor of integ test
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRega committed Oct 6, 2023
1 parent 5e51aba commit c79da4e
Showing 1 changed file with 1 addition and 26 deletions.
27 changes: 1 addition & 26 deletions src/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,32 +108,7 @@ mod test {
fn trim_split(list: &str) -> Vec<&str> {
list.split("\n").map(|e| e.trim()).collect()
}
#[test]
fn identity_is_empty() {
let cfg = JsonConfig {
ignore_keys: vec![],
};
let result = compare_files(
"tests/integ/data/json/expected/guy.json",
"tests/integ/data/json/expected/guy.json",
&cfg,
)
.unwrap();
if let DiffDetail::Json {
differences,
left,
right,
root_mismatch,
} = result.detail.first().unwrap()
{
assert!(differences.is_empty());
assert!(left.is_empty());
assert!(right.is_empty());
assert!(root_mismatch.is_none());
} else {
panic!("wrong diffdetail");
}
}

#[test]
fn no_filter() {
let cfg = JsonConfig {
Expand Down

0 comments on commit c79da4e

Please sign in to comment.