212213214215216217218219220221222
floats[i] = k; } for (int i = 0; i < size; i++) { assertEquals(floats[i], map.get(i), 10e-6); assertTrue(map.containsKey(i)); } } @Test
240241242243244245246247248249250
assertEquals(size, map.size()); for (int i = 0; i < size; i++) { assertEquals(floats[i] + 1.0f, map.get(i), 10e-6); assertTrue(map.containsKey(i)); } } @Test
ints[i] = k; } for (int i = 0; i < size; i++) { assertEquals(ints[i], map.get(i)); assertTrue(map.containsKey(i)); } } @Test public void testUpdate() {
239240241242243244245246247248249
assertEquals(size, map.size()); for (int i = 0; i < size; i++) { assertEquals(ints[i] + 1, map.get(i)); assertTrue(map.containsKey(i)); } } @Test public void testPlus() throws IOException {
4748495051525354555657
for (int i = 0; i < size; i++) { double v = map.get(i); assertEquals(doubles[i], v, 0.0); assertTrue(map.containsKey(i)); } } @Test public void testUpdate() {
7677787980818283848586
for (int i = 0; i < size; i++) { double v = map.get(i); assertEquals(doubles[i] + 1.0, v, 0.0); assertTrue(map.containsKey(i)); } } @Test public void testBasic() throws IOException {
for (int i = 0; i < size; i++) { float v = map.get(i); assertEquals(floats[i], v, 0.0f); assertTrue(map.containsKey(i)); } } @Test public void testUpdate() {
for (int i = 0; i < size; i++) { float v = map.get(i); assertEquals(floats[i] + 1.0f, v, 0.0f); assertTrue(map.containsKey(i)); } } @Test public void testBasic() throws IOException {
for (int i = 0; i < size; i++) { int v = map.get(i); assertEquals(ints[i], v); assertTrue(map.containsKey(i)); } } @Test
7778798081828384858687
for (int i = 0; i < size; i++) { int v = map.get(i); assertEquals(ints[i] + 1, v); assertTrue(map.containsKey(i)); } } @Test public void testBasic() throws IOException {