Formatting
This commit is contained in:
parent
8d9e4f98e1
commit
c7357270b8
1 changed files with 6 additions and 6 deletions
|
@ -350,24 +350,24 @@ fn sparse_matrix_operations() {
|
|||
assert!(matrix.row(0).is_none());
|
||||
}
|
||||
|
||||
// SparseBitMatrix::subtract_row
|
||||
{
|
||||
// SparseBitMatrix::subtract_row
|
||||
{
|
||||
let mut matrix = matrix.clone();
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
||||
// SparseBitMatrix::union_row
|
||||
{
|
||||
// SparseBitMatrix::union_row
|
||||
{
|
||||
let mut matrix = matrix.clone();
|
||||
assert!(!matrix.union_row(3, &subset));
|
||||
assert!(matrix.union_row(3, &disjoint));
|
||||
matrix.union_row(0, &disjoint);
|
||||
assert!(matrix.row(0).is_some());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Merge dense hybrid set into empty sparse hybrid set.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue