Skip to content

Commit

Permalink
Remove old test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
warriordog committed Feb 10, 2019
1 parent 9f7b89d commit 658b402
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions src/test/java/net/acomputerdog/bigwarps/TestBiMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,41 +45,4 @@ public void testRemoves() {
Assert.assertFalse(map.containsA("three"));
Assert.assertFalse(map.containsB(3));
}

@Test
public void testGenericGet() {
BiMap<String, Integer> map = new BiMap<>();
map.put("one", 1);
map.put("two", 2);
map.put("three", 3);

Integer one = 1;
Integer two = 2;
Integer three = 3;

Assert.assertEquals(one, map.get("one"));
Assert.assertEquals("one", map.get(one));
Assert.assertEquals(two, map.get("two"));
Assert.assertEquals("two", map.get(two));
Assert.assertEquals(three, map.get("three"));
Assert.assertEquals("three", map.get(three));
}

@Test
public void testGenericRemove() {
BiMap<String, Integer> map = new BiMap<>();
map.put("one", 1);
map.put("two", 2);
map.put("three", 3);

map.remove("one");
map.remove(3);

Assert.assertFalse(map.containsA("one"));
Assert.assertFalse(map.containsB(1));
Assert.assertTrue(map.containsA("two"));
Assert.assertTrue(map.containsB(2));
Assert.assertFalse(map.containsA("three"));
Assert.assertFalse(map.containsB(3));
}
}

0 comments on commit 658b402

Please sign in to comment.