Lines Matching defs:isEvenLevel
741 assertTrue(MinMaxPriorityQueue.isEvenLevel(0));
742 assertFalse(MinMaxPriorityQueue.isEvenLevel(1));
743 assertFalse(MinMaxPriorityQueue.isEvenLevel(2));
744 assertTrue(MinMaxPriorityQueue.isEvenLevel(3));
746 assertFalse(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 2));
747 assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 10) - 1));
750 assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 2));
751 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 1));
752 assertFalse(MinMaxPriorityQueue.isEvenLevel(i));
755 assertFalse(MinMaxPriorityQueue.isEvenLevel(i - 2));
756 assertTrue(MinMaxPriorityQueue.isEvenLevel(i - 1));
757 assertTrue(MinMaxPriorityQueue.isEvenLevel(i));
760 // since isEvenLevel adds 1, we need to do - 2.
761 assertTrue(MinMaxPriorityQueue.isEvenLevel((1 << 31) - 2));
762 assertTrue(MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE - 1));
764 MinMaxPriorityQueue.isEvenLevel((1 << 31) - 1);
770 MinMaxPriorityQueue.isEvenLevel(Integer.MAX_VALUE);
776 MinMaxPriorityQueue.isEvenLevel(1 << 31);
782 MinMaxPriorityQueue.isEvenLevel(Integer.MIN_VALUE);