Test functies action points, alles werkt
This commit is contained in:
@@ -64,19 +64,24 @@ class WormTest {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void getActionPoints() {
|
void getActionPoints() {
|
||||||
|
assertEquals(4448.0, worm.getActionPoints());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void getMaxActionPoints() {
|
void getMaxActionPoints() {
|
||||||
|
assertEquals(4448.0, worm.getMaxActionPoints());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void setActionPoints() {
|
void setActionPoints() {
|
||||||
|
worm.setActionPoints(300);
|
||||||
|
assertEquals(300, worm.getActionPoints());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
void decreaseActionPoints() {
|
void decreaseActionPoints() {
|
||||||
|
worm.decreaseActionPoints(48);
|
||||||
|
assertEquals(4400, worm.getActionPoints());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Reference in New Issue
Block a user