@Test public void _testFind() throws Exception { // test the accuracy of PForDeltaDocIdSet.find() System.out.println("Running test case: PForDeltaDocIdSet.find() ..."); ArrayList<OpenBitSet> obs = new ArrayList<OpenBitSet>(); ArrayList<DocIdSet> docs = new ArrayList<DocIdSet>(); int maxDoc = 35000; int listNum = 1; getRandomDataSets(obs, docs, maxDoc, listNum); ArrayList<Integer> input = bitSetToArrayList(obs.get(0)); DocSet docSet = new PForDeltaDocIdSet(); boolean saw403 = false; for (Integer integer : input) { if (integer == 403) { saw403 = true; System.out.println("find the guy"); } docSet.addDoc(integer); } boolean got = docSet.find(403); assertEquals(saw403, got); System.out.println("---------------completed----------------------------"); }