void () { BitSetFlags flags = new BitSetFlags(6); assertEquals("000000", toStr(flags)); flags.set(0, true); assertEquals("100000", toStr(flags)); flags.set(0, false); assertEquals("000000", toStr(flags)); flags.set(4, true); assertEquals("000010", toStr(flags)); flags.set(2, true); assertEquals("001010", toStr(flags)); }