Erste Tests
This commit is contained in:
parent
09a995eccf
commit
ddedb7735e
@ -22,6 +22,12 @@ public class LifeTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void destroyLonelyCell() {
|
public void destroyLonelyCell() {
|
||||||
|
Life l = new Life();
|
||||||
|
l.setAlive(2, 2);
|
||||||
|
|
||||||
|
ILife nextGen = l.nextGeneration();
|
||||||
|
|
||||||
|
assertFalse(nextGen.isAlive(2, 2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user