Test createNewCell() stupide begrünen

This commit is contained in:
Susanne 2025-02-15 18:10:00 +01:00
parent 3bfcb3cdca
commit 41e60e145b
5 changed files with 6 additions and 6 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,5 +1,6 @@
public class Life implements ILife { public class Life implements ILife {
public static void main(String[] args) { public static void main(String[] args) {
Life l = new Life(new String[] { " ", Life l = new Life(new String[] { " ",
" ", " ",
@ -32,7 +33,6 @@ public class Life implements ILife {
@Override @Override
public void setAlive(int x, int y) { public void setAlive(int x, int y) {
// TODO Auto-generated method stub // TODO Auto-generated method stub
} }
@Override @Override
@ -43,13 +43,12 @@ public class Life implements ILife {
@Override @Override
public boolean isAlive(int x, int y) { public boolean isAlive(int x, int y) {
// TODO Auto-generated method stub return true;
return false;
} }
@Override @Override
public ILife nextGeneration() { public ILife nextGeneration() {
// TODO Auto-generated method stub Life next = new Life();
return null; return next;
} }
} }

View File

@ -17,6 +17,7 @@ public class LifeTest {
// Assert: Rasterpunkt mit drei Nachbarn sollte jetzt leben // Assert: Rasterpunkt mit drei Nachbarn sollte jetzt leben
assertTrue(nextGen.isAlive(1, 1)); assertTrue(nextGen.isAlive(1, 1));
// TEST GRÜN WENN nextGen!=null UND isAlive==true
} }