Skip to content
Snippets Groups Projects
Commit 67dda93c authored by Christian Engwer's avatar Christian Engwer
Browse files

* fix |= operator

* add more tests, some of them fail atm.

[[Imported from SVN: r5800]]
parent 9b394e30
No related branches found
No related tags found
No related merge requests found
......@@ -186,6 +186,8 @@ namespace Dune {
object it references
*/
void operator & ();
friend class BitSetVectorReference<block_size, Alloc>;
};
/**
......
......@@ -95,6 +95,34 @@ void testContainer(BBF & bbf)
z != y;
y != z;
// &=
y &= cbbf[2];
y &= bbf[3];
y &= x;
x &= y;
x &= z;
y &= z;
// |=
y |= cbbf[2];
y |= bbf[3];
y |= x;
x |= y;
x |= z;
y |= z;
// ^=
y ^= cbbf[2];
y ^= bbf[3];
y ^= x;
x ^= y;
x ^= z;
y ^= z;
// shift operator
y <<= 1;
y >>= 1;
// flip
y.flip();
y.flip(2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment