178179180181182183184185
test3Common(fd); } @Test public void test3Fastutil() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionFastutil(); test3Common(fd); }
202203204205206207208209
assertEquals(0, fd.getSumOfCounts()); } @Test(expected = RuntimeException.class) public void testFailedDecrement1Entry() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionEntry(); testFailedDecrement1Common(fd); }
208209210211212213214215
testFailedDecrement1Common(fd); } @Test(expected = RuntimeException.class) public void testFailedDecrement1Fastutil() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionFastutil(); testFailedDecrement1Common(fd); }
230231232233234235236237
fd.decrement(1); } @Test(expected = RuntimeException.class) public void testFailedDecrement2Entry() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionEntry(); testFailedDecrement2Common(fd); }
236237238239240241242243
testFailedDecrement2Common(fd); } @Test(expected = RuntimeException.class) public void testFailedDecrement2Fastutil() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionFastutil(); testFailedDecrement2Common(fd); }
265266267268269270271272
fd.decrement(1, 4); } @Test public void testMultiIncrementDecrementEntry() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionEntry(); testMultiIncrementDecrementCommon(fd); }
271272273274275276277278
testMultiIncrementDecrementCommon(fd); } @Test public void testMultiIncrementDecrementFastutil() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionFastutil(); testMultiIncrementDecrementCommon(fd); }
299300301302303304305306
assertEquals(4, fd.get(3)); } @Test public void testGetFrequencySortedEventsEntry() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionEntry(); testGetFrequencySortedEventsCommon(fd); }
305306307308309310311312
testGetFrequencySortedEventsCommon(fd); } @Test public void testGetFrequencySortedEventsFastutil() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionFastutil(); testGetFrequencySortedEventsCommon(fd); }
384385386387388389390391
assertEquals(5, list.get(3).getRightElement()); } @Test public void testGetSortedEventsEntry() { Int2IntFrequencyDistribution fd = new Int2IntFrequencyDistributionEntry(); testGetSortedEventsCommon(fd); }