Skip to content

Commit

Permalink
Merge pull request #96 from koba-e964/fix/ci
Browse files Browse the repository at this point in the history
Prefer assert! to assert_eq! for boolean values
  • Loading branch information
qryxip authored Mar 6, 2022
2 parents 08d5aa5 + 4481d96 commit 40329df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dsu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ mod tests {
fn dsu_works() {
let mut d = Dsu::new(4);
d.merge(0, 1);
assert_eq!(d.same(0, 1), true);
assert!(d.same(0, 1));
d.merge(1, 2);
assert_eq!(d.same(0, 2), true);
assert!(d.same(0, 2));
assert_eq!(d.size(0), 3);
assert_eq!(d.same(0, 3), false);
assert!(!d.same(0, 3));
assert_eq!(d.groups(), vec![vec![0, 1, 2], vec![3]]);
}
}

0 comments on commit 40329df

Please sign in to comment.