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

master
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
1 changed files with 3 additions and 0 deletions

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]