示例#1
0
 @Test
 public void test_size() {
   BTreeMap m = new BTreeMap(engine, 6, true, false, null, null, null, null);
   assertTrue(m.isEmpty());
   assertEquals(0, m.size());
   for (int i = 1; i < 30; i++) {
     m.put(i, i);
     assertEquals(i, m.size());
     assertFalse(m.isEmpty());
   }
 }
示例#2
0
  @Test
  public void test_size() {

    assertTrue(m.isEmpty());
    assertEquals(0, m.size());
    for (int i = 1; i < 30; i++) {
      m.put(i, i);
      assertEquals(i, m.size());
      assertFalse(m.isEmpty());
    }
  }