Skip to content

Commit

Permalink
adding more tests for equals
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanCheshire committed Sep 11, 2024
1 parent 2779d1b commit 5d15abb
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,36 @@ class GravatarProfileContactInfoTest {
assertNotEquals(contactInfo, notEqual)
assertNotEquals(contactInfo, Object())
assertNotEquals(notEqual, differingLastParameter)

val workPhoneOne = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "-")
val workPhoneTwo = GravatarProfileContactInfo("-", "x", "-",
"-", "-", "-")
assertNotEquals(workPhoneOne, workPhoneTwo)

val cellPhoneOne = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "-")
val cellPhoneTwo = GravatarProfileContactInfo("-", "-", "x",
"-", "-", "-")
assertNotEquals(cellPhoneOne, cellPhoneTwo)

val emailOne = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "-")
val emailTwo = GravatarProfileContactInfo("-", "-", "-",
"x", "-", "-")
assertNotEquals(emailOne, emailTwo)

val contactFormOne = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "-")
val contactFormTwo = GravatarProfileContactInfo("-", "-", "-",
"-", "x", "-")
assertNotEquals(contactFormOne, contactFormTwo)

val calendarOne = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "-")
val calendarTwo = GravatarProfileContactInfo("-", "-", "-",
"-", "-", "x")
assertNotEquals(calendarOne, calendarTwo)
}

/**
Expand Down

0 comments on commit 5d15abb

Please sign in to comment.