You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 assert Person("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 assert InvalidAgeValueException is thrown instead of InvalidAgeRangeException
The text was updated successfully, but these errors were encountered:
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 assert
Person("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 assert
InvalidAgeValueException
is thrown instead ofInvalidAgeRangeException
The text was updated successfully, but these errors were encountered: