You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
assert_eq!(actual.error.range, expected.range,"Range mismatch: {:#?} vs {:#?}", actual, expected);
54
-
assert_eq!(actual.rule_type, expected.rule_type,"RuleType mismatch: {:#?} vs {:#?}", actual, expected);
55
-
}
51
+
let actual_errors:HashSet<_> = lint_errors.iter().map(|e| (e.error.range.clone(), e.rule_type.clone())).collect();
52
+
let expected_errors:HashSet<_> = expected_errors.iter().map(|e| (e.range.clone(), e.rule_type.clone())).collect();
53
+
54
+
assert_eq!(actual_errors, expected_errors,"Mismatch between actual and expected errors:\nActual: {:#?}\nExpected: {:#?}", actual_errors, expected_errors);
0 commit comments