public void test_Issue6() { LongHashMap<String> t = new LongHashMap<String>(); t.put(6447459, "aa"); t.put(6382177, "bb"); assertEquals("aa", t.get(6447459)); assertEquals("bb", t.get(6382177)); assertEquals("LongHashMap[6382177 => bb, 6447459 => aa]", t.toString()); }
public void test2() { LongHashMap<String> v1 = new LongHashMap<String>(); v1.put(1611, "1611"); v1.put(15500, "15500"); v1.put(9446, "9446"); System.out.println(v1.get(9446)); System.out.println(v1.toString()); assertEquals(3, v1.size()); assertEquals(v1.get(9446), "9446"); }