ddr::ssq::Row: Test intersection for different player counts

This commit is contained in:
Simon Bruder 2020-07-23 12:53:53 +02:00
parent 240257197a
commit 087c190e63
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -504,6 +504,9 @@ mod tests {
let row_b = Row::new(*b, *players).unwrap();
assert_eq!(row_a.intersects(row_b), *intersects);
}
assert!(!Row::new(0b1111, 1)
.unwrap()
.intersects(Row::new(0b1111, 2).unwrap()));
}
#[test]