Code example for NavigableSet

Methods: higher

  public void testHigherHole() { 
    assertEquals(c, navigableSet.higher(a));
    assertEquals(c, navigableSet.higher(b));
    assertEquals(null, navigableSet.higher(c));
   * TODO(cpovirk): make "too small" and "too large" elements available for better navigation 
   * testing. At that point, we may be able to eliminate the "hole" tests, which would mean that 
   * ContiguousSet's tests would no longer need to suppress them. 
  public void testLower() { 
    assertEquals(null, navigableSet.lower(a));
    assertEquals(a, navigableSet.lower(b));
    assertEquals(b, navigableSet.lower(c));