mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-21 22:34:05 +00:00
Fix failing test
This commit is contained in:
parent
2166c6db43
commit
8d9e4f98e1
@ -344,8 +344,8 @@ fn sparse_matrix_operations() {
|
||||
// SparseBitMatrix::intersect_row
|
||||
{
|
||||
let mut matrix = matrix.clone();
|
||||
assert!(!matrix.intersect_row(2, &superset));
|
||||
assert!(matrix.intersect_row(2, &subset));
|
||||
assert!(!matrix.intersect_row(3, &superset));
|
||||
assert!(matrix.intersect_row(3, &subset));
|
||||
matrix.intersect_row(0, &disjoint);
|
||||
assert!(matrix.row(0).is_none());
|
||||
}
|
||||
@ -353,9 +353,9 @@ fn sparse_matrix_operations() {
|
||||
// SparseBitMatrix::subtract_row
|
||||
{
|
||||
let mut matrix = matrix.clone();
|
||||
assert!(!matrix.subtract_row(2, &disjoint));
|
||||
assert!(matrix.subtract_row(2, &subset));
|
||||
assert!(matrix.subtract_row(2, &superset));
|
||||
assert!(!matrix.subtract_row(3, &disjoint));
|
||||
assert!(matrix.subtract_row(3, &subset));
|
||||
assert!(matrix.subtract_row(3, &superset));
|
||||
matrix.intersect_row(0, &disjoint);
|
||||
assert!(matrix.row(0).is_none());
|
||||
}
|
||||
@ -363,8 +363,8 @@ fn sparse_matrix_operations() {
|
||||
// SparseBitMatrix::union_row
|
||||
{
|
||||
let mut matrix = matrix.clone();
|
||||
assert!(!matrix.union_row(2, &subset));
|
||||
assert!(matrix.union_row(2, &disjoint));
|
||||
assert!(!matrix.union_row(3, &subset));
|
||||
assert!(matrix.union_row(3, &disjoint));
|
||||
matrix.union_row(0, &disjoint);
|
||||
assert!(matrix.row(0).is_some());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user