Umänderung der nextGeneration Methode
This commit is contained in:
parent
a18048da87
commit
b6ed712507
@ -49,7 +49,16 @@ public class LifeTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void destroyCrowdedCell() {
|
public void destroyCrowdedCell() {
|
||||||
|
Life l = new Life();
|
||||||
|
l.setAlive(1, 1);
|
||||||
|
l.setAlive(0, 1);
|
||||||
|
l.setAlive(2, 1);
|
||||||
|
l.setAlive(1, 0);
|
||||||
|
l.setAlive(1, 2);
|
||||||
|
|
||||||
|
ILife nextGen = l.nextGeneration();
|
||||||
|
|
||||||
|
assertFalse(nextGen.isAlive(1, 1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user