Skip to content

Commit e645168

Browse files
deepsource: test methods - assert_eq updated to assert
1 parent 3f5d748 commit e645168

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/json/flatten.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -637,13 +637,13 @@ mod tests {
637637
#[test]
638638
fn unacceptable_levels_of_nested_json() {
639639
let value = json!({"a":{"b":{"c":{"d":{"e":["a","b"]}}}}});
640-
assert_eq!(has_more_than_four_levels(&value, 1), true);
640+
assert!(has_more_than_four_levels(&value, 1));
641641
}
642642

643643
#[test]
644644
fn acceptable_levels_of_nested_json() {
645645
let value = json!({"a":{"b":{"e":["a","b"]}}});
646-
assert_eq!(has_more_than_four_levels(&value, 1), false);
646+
assert!(!has_more_than_four_levels(&value, 1));
647647
}
648648

649649
#[test]

0 commit comments

Comments
 (0)