ZooSimulationTest update

kleinerRech
Kai Sellmann 2023-05-29 10:12:40 +02:00
parent 7486e769cf
commit 148bcb09c2
1 changed files with 15 additions and 0 deletions

View File

@ -28,4 +28,19 @@ public class ZooSimulationTest {
}
void tiereArrayTesten() {
ZooTier albert = null;
ZooTier hauer = null;
ZooTier charlie = null;
ZooTier[] tiere = {albert, charlie, hauer};
assertTrue(tiere.length == 3);
assertTrue(tiere[2] == hauer);
assertTrue(!(tiere[3] == null));
}
}