Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
jordond committed Mar 28, 2024
1 parent 7f5cc29 commit ef23025
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class PlaceTest {
@Test
fun isEmptyReturnsTrueWhenAllPropertiesAreNull() {
val place = Place(
coordinates = Coordinates(0.0, 0.0),
name = null,
street = null,
isoCountryCode = null,
Expand All @@ -19,14 +20,15 @@ class PlaceTest {
locality = null,
subLocality = null,
thoroughfare = null,
subThoroughfare = null
subThoroughfare = null,
)
assertTrue { place.isEmpty }
}

@Test
fun isEmptyReturnsFalseWhenAnyPropertyIsNotNull() {
val place = Place(
coordinates = Coordinates(0.0, 0.0),
name = "name",
street = null,
isoCountryCode = null,
Expand Down

0 comments on commit ef23025

Please sign in to comment.