diff --git a/test/LifeTest.java b/test/LifeTest.java index 3940e66..bd005b1 100644 --- a/test/LifeTest.java +++ b/test/LifeTest.java @@ -22,6 +22,12 @@ public class LifeTest { @Test public void destroyLonelyCell() { + Life l = new Life(); + l.setAlive(2, 2); + + ILife nextGen = l.nextGeneration(); + + assertFalse(nextGen.isAlive(2, 2)); }