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

Method testFloor

src/test/java/org/mapdb/BTreeSet3Test.java:368–381  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

366 * floor returns preceding element
367 */
368 public void testFloor() {
369 NavigableSet q = set5();
370 Object e1 = q.floor(three);
371 assertEquals(three, e1);
372
373 Object e2 = q.floor(six);
374 assertEquals(five, e2);
375
376 Object e3 = q.floor(one);
377 assertEquals(one, e3);
378
379 Object e4 = q.floor(zero);
380 assertNull(e4);
381 }
382
383 /*
384 * ceiling returns next element

Callers

nothing calls this directly

Calls 2

set5Method · 0.95
floorMethod · 0.45

Tested by

no test coverage detected