Skip to content

Commit 78e24a2

Browse files
deepsource: test methods - assert_eq updated to assert
1 parent 6dff3e1 commit 78e24a2

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
@@ -636,13 +636,13 @@ mod tests {
636636
#[test]
637637
fn unacceptable_levels_of_nested_json() {
638638
let value = json!({"a":{"b":{"c":{"d":{"e":["a","b"]}}}}});
639-
assert_eq!(has_more_than_four_levels(&value, 1), true);
639+
assert!(has_more_than_four_levels(&value, 1));
640640
}
641641

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

648648
#[test]

0 commit comments

Comments
 (0)