Skip to content

Commit 8247fdc

Browse files
committed
Uncomment examples that didn't work earlier on scala.js
1 parent 73942a7 commit 8247fdc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shared/src/test/scala/org/threeten/bp/TestExamples.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ class TestExamples extends FunSuite with AssertionsHelper {
5757
assertEquals(japDate.toString, "Japanese Heisei 21-02-13")
5858

5959
// This tries to read property files from disk
60-
// val hijDate = chrono.HijrahDate.now(fixedClock)
61-
// assertEquals(hijDate.toString, "")
60+
val hijDate = chrono.HijrahDate.now(fixedClock)
61+
assertEquals(hijDate.toString, "Hijrah-umalqura AH 1430-02-17")
6262

6363
val thaiDate = chrono.ThaiBuddhistDate.now(fixedClock)
6464
assertEquals(thaiDate.toString, "ThaiBuddhist BE 2552-02-13")
@@ -70,6 +70,6 @@ class TestExamples extends FunSuite with AssertionsHelper {
7070
assertEquals(mingDate.format(format2), "Anno Domini") // WTF?
7171

7272
val zonedDateTime1 = ZonedDateTime.now(fixedClock)
73-
// val zonedDateTime2 = ZonedDateTime.now(ZoneRegion.ofId("Europe/Berlin", true))
73+
val zonedDateTime2 = ZonedDateTime.now(ZoneRegion.ofId("Europe/Berlin", true))
7474
}
7575
}

0 commit comments

Comments
 (0)