Formatting

This commit is contained in:
Will Crichton 2021-08-26 13:23:24 -07:00
parent 8d9e4f98e1
commit c7357270b8

View File

@ -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.