ExceptionExercisesTest
Closed this issue · 2 comments
Ttcao commented
For the createPerson
function the assertions need to be fixed for the tests:
-
"should return Person if supplied a valid name and age"
The test should assertPerson("Fred", 32)
-
"should throw an EmptyNameException if the name supplied is empty"
The test should assert"provided name is empty"
-
"should throw an InvalidAgeValueException if the age supplied is not an Int"
The test should assertInvalidAgeValueException
is thrown instead ofInvalidAgeRangeException
sanjivsahayamrea commented
nice work @Ttcao. Looking forward to your PR. :)