We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0b92073 commit 2aa66beCopy full SHA for 2aa66be
test/files/jvm/serialization.scala
@@ -604,6 +604,7 @@ object Test {
604
Test7
605
Test8
606
Test9_parallel
607
+ Test10_util
608
}
609
610
@@ -669,3 +670,17 @@ object Test9_parallel {
669
670
throw e
671
672
673
+
674
+//############################################################################
675
+// Test classes in package scala.util
676
677
+object Test10_util {
678
+ import scala.util.Random
679
+ def rep[A](n: Int)(f: => A) { if (n > 0) { f; rep(n-1)(f) } }
680
681
+ try {
682
+ val random = new Random(345)
683
+ val random2: Random = read(write(random))
684
+ rep(5) { assert(random.nextInt == random2.nextInt) }
685
+ }
686
+}
0 commit comments