@@ -695,24 +695,25 @@ class LazyListLazinessTest {
695
695
}
696
696
}
697
697
698
- @ Test
699
- def serialization_properlyLazy (): Unit = {
700
- def serializeDeserialize (obj : LazyList [Int ]): LazyList [Int ] = {
701
- import java .io ._
702
- val buffer = new ByteArrayOutputStream
703
- val out = new ObjectOutputStream (buffer)
704
- out.writeObject(obj)
705
- val in = new ObjectInputStream (new ByteArrayInputStream (buffer.toByteArray))
706
- in.readObject.asInstanceOf [LazyList [Int ]]
707
- }
708
-
709
- assertLazyAll(serializeDeserialize)
710
- val op = lazyListOp { list =>
711
- list.take(4 ).force
712
- serializeDeserialize(list)
713
- }
714
- assertLazyAllSkipping(op, 4 )
715
- }
698
+ // This test does not work across all Scala versions, or on scala.js
699
+ // @Test
700
+ // def serialization_properlyLazy(): Unit = {
701
+ // def serializeDeserialize(obj: LazyList[Int]): LazyList[Int] = {
702
+ // import java.io._
703
+ // val buffer = new ByteArrayOutputStream
704
+ // val out = new ObjectOutputStream(buffer)
705
+ // out.writeObject(obj)
706
+ // val in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray))
707
+ // in.readObject.asInstanceOf[LazyList[Int]]
708
+ // }
709
+ //
710
+ // assertLazyAll(serializeDeserialize)
711
+ // val op = lazyListOp { list =>
712
+ // list.take(4).force
713
+ // serializeDeserialize(list)
714
+ // }
715
+ // assertLazyAllSkipping(op, 4)
716
+ // }
716
717
717
718
/* factory laziness tests */
718
719
0 commit comments