From 2cc66332d4fec8f0ab36af9b4fec0f28fc6bd7ff Mon Sep 17 00:00:00 2001 From: Mohcine Madkour Date: Thu, 14 Jun 2018 01:26:02 -0400 Subject: [PATCH] s --- tests/test_catmath.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/tests/test_catmath.py b/tests/test_catmath.py index ced6358..d3a91a8 100644 --- a/tests/test_catmath.py +++ b/tests/test_catmath.py @@ -2,18 +2,26 @@ def test__cat_years_to_hooman_years__middle_age__succeeds(): - assert True + cat_age = 7 + hooman_age = catmath.cat_years_to_hooman_years(cat_age) + assert hooman_age == 39 def test__cat_years_to_hooman_years__less_than_one_year__succeeds(): - assert True + cat_age = 0.1 + hooman_age = catmath.cat_years_to_hooman_years(cat_age) + assert hooman_age == 0.5 def test__cat_years_to_hooman_years__0__returns_0(): - assert True + hooman_age = catmath.cat_years_to_hooman_years(0) + assert hooman_age == 0 # BONUS MATERIAL FOR STEP 2 def test__is_cat_leap_year__succeeds(): assert catmath.is_cat_leap_year(2016) is True + + +