Skip to content

Commit

Permalink
Fixes overweight test case
Browse files Browse the repository at this point in the history
  • Loading branch information
anselmos committed May 12, 2017
1 parent e5519d3 commit 7d7cce8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bikingendorphines/web/tests/django_type/tests_user.py
Expand Up @@ -15,8 +15,10 @@ def bmi_health_name(self, bmi):
return None
if bmi >= 0 and bmi <= 18.5:
return "Underweight"
if bmi > 18.5:
if bmi > 18.5 and bmi <= 24.9:
return "Normal weight"
if bmi > 24.9:
return "Overweight"

def assert_bmi_health(self, input, expected):
assert self.bmi_health_name(input) == expected
Expand Down

0 comments on commit 7d7cce8

Please sign in to comment.