ddr::ssq::Row: Test intersection for different player counts
This commit is contained in:
parent
240257197a
commit
087c190e63
|
@ -504,6 +504,9 @@ mod tests {
|
||||||
let row_b = Row::new(*b, *players).unwrap();
|
let row_b = Row::new(*b, *players).unwrap();
|
||||||
assert_eq!(row_a.intersects(row_b), *intersects);
|
assert_eq!(row_a.intersects(row_b), *intersects);
|
||||||
}
|
}
|
||||||
|
assert!(!Row::new(0b1111, 1)
|
||||||
|
.unwrap()
|
||||||
|
.intersects(Row::new(0b1111, 2).unwrap()));
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Reference in a new issue