Abgabe
This commit is contained in:
parent
2236d2bd00
commit
d8fea51037
@ -30,13 +30,13 @@ public class LifeTest {
|
|||||||
@Test
|
@Test
|
||||||
public void keepAliveCell() {
|
public void keepAliveCell() {
|
||||||
Life firstGen = new Life();
|
Life firstGen = new Life();
|
||||||
firstGen.setAlive(1, 1);
|
|
||||||
firstGen.setAlive(2, 2);
|
firstGen.setAlive(2, 2);
|
||||||
firstGen.setAlive(3, 3);
|
firstGen.setAlive(3, 3);
|
||||||
|
firstGen.setAlive(4, 4);
|
||||||
|
|
||||||
ILife nextGen = firstGen.nextGeneration();
|
ILife nextGen = firstGen.nextGeneration();
|
||||||
|
|
||||||
assertTrue(nextGen.isAlive(2, 2));
|
assertTrue(nextGen.isAlive(3, 3));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user