/** * Test method: long getSelect0(int i) * * @throws Exception */ public void testGetSelect0() throws Exception { BitMap instance = new BitMap(2048); ArrayList<Long> test = new ArrayList<Long>(); for (int i = 0; i < 2048; i++) { if ((int) (Math.random() * 2) == 1) { instance.setBit(i); } else { test.add((long) i); } } for (int i = 0; i < test.size(); i++) { assertEquals(instance.getSelect0(i), (long) test.get(i)); } }