7 kyu

Jacob's Weight Loss Program

332 of 540jeffwright13
Description
Loading description...
Fundamentals
  • Please sign in or sign up to leave a comment.
  • Just4FunCoder Avatar

    Python fork

    1. Fixed test framework setup
    2. Added useful assertion message
    3. Modified description
      • included the exception messages to return in the case of invalid parameter(s) (all three languages Python/JS/Ruby return the exact same error messages 'Invalid gender' / 'Invalid weight' / 'Invalid duration')
      • fixed formatting
      • removed minor typo
  • Infuzibil Avatar

    The description should specify in which order the exceptions are evaluated and what error messages should be used. In this case, gender is evaluated first, then weight, then duration.

  • General_Sark Avatar

    In the technical details section/paragraph there is a typo for the word formula. It is spelled "formulae" in the kata

  • Hunahpu Avatar

    Are you sure this kata is ok? For M 250 5 I got "231.25 should equal 231.8". But when I calculate this on my calculator I also get 231.25, there's no way to get 231.8 with those inputs so I think those tests are off.

  • codcw Avatar

    double random incorrect and i somehow must know that i should output 'Invalid weight' instead of 'Invalid duration', wtf...

  • lechevalier Avatar

    Exception messages aren't detailed.

  • cliffstamp Avatar

    Ruby :

    • the sample tests won't run, they have syntax errors

    • the description isn't clear on the order of the validation

    • the description also doesn't give the correct expected return value

  • lechevalier Avatar

    Exception messages aren't detailed.

  • Insti Avatar

    The description says:

    and then generates/returns the expected weight loss (in pounds).

    But the tests expect the final weight of the person.

    I suggest description is changed to:

    and then returns the expected weight at the end of the program.

  • GiacomoSorbi Avatar

    JS and Ruby translation submitted, if you want to approve them; during the translation the servers didn't seem in top shape, so feel free to let me know if you encounter any trouble!

  • zebulan Avatar

    I made a slight change to your katas tests so it will work for Python 3 as well.

    Instead of string.letters (Python 2 only), I made it string.ascii_letters (Python 2 & 3).

    Hope you don't mind the change. I just saw a message about Python 3 support and wanted to try it out!

  • bkaes Avatar

    No random tests.

  • Wittybit Avatar

    Nice and easy kata =)