wjlow/intro-to-scala

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 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

nice work @Ttcao. Looking forward to your PR. :)

wjlow commented

Closed in #39