Skip to content

Instantly share code, notes, and snippets.

@bartubozkurt
Created November 22, 2021 12:47
Show Gist options
  • Save bartubozkurt/67544244c12591eec39baecc45a37da0 to your computer and use it in GitHub Desktop.
Save bartubozkurt/67544244c12591eec39baecc45a37da0 to your computer and use it in GitHub Desktop.
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