From 8bab87dc2b0068ed4a3bc49f873fc4403f3afd73 Mon Sep 17 00:00:00 2001 From: Arnau Mora Gras Date: Wed, 14 Aug 2024 10:27:37 +0200 Subject: [PATCH] Added test to make sure Berlin is not present Signed-off-by: Arnau Mora Gras --- .../ical4android/AndroidCompatTimeZoneRegistryTest.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCompatTimeZoneRegistryTest.kt b/lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCompatTimeZoneRegistryTest.kt index cd8764db..426ab95a 100644 --- a/lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCompatTimeZoneRegistryTest.kt +++ b/lib/src/androidTest/kotlin/at/bitfire/ical4android/AndroidCompatTimeZoneRegistryTest.kt @@ -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"))