Exemple #1
0
 public void testAdding_removes() {
   Map map = new Map(4, 4);
   Thing aStone = map.addThing("stone", 0, 0);
   assertSame(aStone, map.getThings(0, 0)[0]);
   map.addThing(aStone, 0, 1);
   assertEquals(0, map.getThings(0, 0).length);
   assertSame(aStone, map.getThings(0, 1)[0]);
 }
Exemple #2
0
 public void testAdding() {
   Map map = new Map(4, 4);
   Thing aStone = map.addThing("stone", 0, 0);
   assertEquals(1, map.getThings().length);
   assertEquals(aStone, map.getThings(0, 0)[0]);
 }