File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,13 @@ class TimeZoneTest {
35
35
@Test
36
36
fun available () {
37
37
val allTzIds = TimeZone .availableZoneIds
38
- assertContains(allTzIds, " Europe/Berlin" )
39
- assertContains(allTzIds, " Europe/Moscow" )
40
- assertContains(allTzIds, " America/New_York" )
38
+ assertContains(allTzIds, " Europe/Berlin" , " Europe/Berlin not in $allTzIds " )
39
+ assertContains(allTzIds, " Europe/Moscow" , " Europe/Moscow not in $allTzIds " )
40
+ assertContains(allTzIds, " America/New_York" , " America/New_York not in $allTzIds " )
41
41
42
- assertNotEquals( 0 , allTzIds.size)
43
- assertTrue( TimeZone .currentSystemDefault().id in allTzIds)
44
- assertTrue(" UTC" in allTzIds)
42
+ assertTrue( TimeZone .currentSystemDefault().id in allTzIds,
43
+ " The current system timezone ${ TimeZone .currentSystemDefault().id} is not in $ allTzIds" )
44
+ assertTrue(" UTC" in allTzIds, " The UTC timezone not in $allTzIds " )
45
45
}
46
46
47
47
@Test
You can’t perform that action at this time.
0 commit comments