Skip to content

Commit

Permalink
Added test to make sure Berlin is not present
Browse files Browse the repository at this point in the history
Signed-off-by: Arnau Mora Gras <arnyminerz@proton.me>
  • Loading branch information
ArnyminerZ committed Aug 14, 2024
1 parent 4e95cdb commit 8bab87d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,13 @@ class AndroidCompatTimeZoneRegistryTest {
)
}

@Test
fun getTimeZone_Copenhagen_NoBerlin() {
val tz = registry.getTimeZone("Europe/Copenhagen")!!
assertEquals("Europe/Copenhagen", tz.id)
assertFalse(tz.vTimeZone.toString().contains("Berlin"))
}

@Test
fun getTimeZone_NotExisting() {
assertNull(registry.getTimeZone("Test/NotExisting"))
Expand Down

0 comments on commit 8bab87d

Please sign in to comment.