Created
November 22, 2021 12:47
-
-
Save bartubozkurt/67544244c12591eec39baecc45a37da0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class PlayerPointsTest { | |
private final PlayerPoints pp = new PlayerPoints(); | |
@Test | |
void lessPoints() { | |
assertEquals(30+50, pp.totalPoints(30, 5)); | |
} | |
@Test | |
void manyPointsButLittleLives() { | |
assertEquals(300+30, pp.totalPoints(300, 1)); | |
} | |
@Test | |
void manyPointsAndManyLives() { | |
assertEquals(500*3, pp.totalPoints(500, 10)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment