Erste Tests
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user