There is a requirement for exercise ellens-alien-game’s hit() method which states: “Make sure that the health points do not drop below zero.”.
This requirement is untested, and could be tested by simply adding “get_health() == 0” at the end of test case “Alien is alive while health is greater than 0 and stays dead afterwards”.
See (closed) PR Hit requirement untested by nash8114 · Pull Request #901 · exercism/cpp · GitHub
1 Like
Thanks for your contribution. This is merged now.
1 Like