MCPcopy Index your code
hub / github.com/jankotek/mapdb / testFloor

Method testFloor

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

Source from the content-addressed store, hash-verified

413 * floor returns preceding element
414 */
415 public void testFloor() {
416 NavigableSet q = set5();
417 Object e1 = q.floor(three);
418 assertEquals(three, e1);
419
420 Object e2 = q.floor(six);
421 assertEquals(five, e2);
422
423 Object e3 = q.floor(one);
424 assertEquals(one, e3);
425
426 Object e4 = q.floor(zero);
427 assertNull(e4);
428 }
429
430 /*
431 * ceiling returns next element

Callers

nothing calls this directly

Calls 2

set5Method · 0.95
floorMethod · 0.45

Tested by

no test coverage detected