Ad
  • Default User Avatar

    Java Translation kumited. Please check out, thank you! :)

  • Default User Avatar

    Hi! Thanks for your reply and for pointing out the issue. I've made some adjustments, so now the tests are faithful to the description. I also included some clarifications and better examples.

  • Custom User Avatar

    The boundary condition in the tests do not obey to kata description:

    assertEquals(20, CharmanderTheHero.attack(10,"FAIRY"));
    assertEquals(6, CharmanderTheHero.attack(15,"FLYING"));
    

    Kata description says

    calculate how many attacks Charmander can tank before fainting.

    Pokemon faints at 0HP or below, so any attack that reduces its HP to exactly 0 should not count, and so the first expected value should be 19.