MCPcopy Create free account
hub / github.com/jankotek/mapdb / testCeiling

Method testCeiling

src/test/java/org/mapdb/BTreeSet2Test.java:433–446  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 * ceiling returns next element
432 */
433 public void testCeiling() {
434 NavigableSet q = set5();
435 Object e1 = q.ceiling(three);
436 assertEquals(three, e1);
437
438 Object e2 = q.ceiling(zero);
439 assertEquals(one, e2);
440
441 Object e3 = q.ceiling(five);
442 assertEquals(five, e3);
443
444 Object e4 = q.ceiling(six);
445 assertNull(e4);
446 }
447
448 /*
449 * toArray contains all elements in sorted order

Callers

nothing calls this directly

Calls 2

set5Method · 0.95
ceilingMethod · 0.45

Tested by

no test coverage detected