@@ -0,0 +1,939 @@
+package org.trie4j.util;%0A%0Aimport junit.framework.Assert;%0A%0Aimport org.junit.Test;%0A%0Apublic class FastBitSetTest %7B%0A%09@Test%0A%09public void test_set_1() throws Exception%7B%0A%09%09FastBitSet bs = new FastBitSet();%0A%09%09for(int i = 0; i %3C 1000; i++)%7B%0A%09%09%09bs.set(i);%0A%09%09%09Assert.assertTrue(bs.get(i));%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void test_set_2() throws Exception%7B%0A%09%09FastBitSet bs = new FastBitSet();%0A%09%09for(int i = 0; i %3C 8; i++)%7B%0A%09%09%09int index = (int)Math.pow(10, i);%0A%09%09%09bs.set(index);%0A%09%09%09Assert.assertTrue(bs.get(index));%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void test_unset_1() throws Exception%7B%0A%09%09FastBitSet bs = new FastBitSet();%0A%09%09for(int i = 0; i %3C 1000; i++)%7B%0A%09%09%09bs.set(i);%0A%09%09%09bs.unset(i);%0A%09%09%09Assert.assertFalse(bs.get(i));%0A%09%09%7D%0A%09%7D%0A%0A%09@Test%0A%09public void test_unset_2() throws Exception%7B%0A%09%09FastBitSet bs = new FastBitSet();%0A%09%09for(int i = 0; i %3C 8; i++)%7B%0A%09%09%09int index = (int)Math.pow(10, i);%0A%09%09%09bs.set(index);%0A%09%09%09bs.unset(index);%0A%09%09%09Assert.assertFalse(bs.get(index));%0A%09%09%7D%0A%09%7D%0A%7D%0A

Test for FastBitSet