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 83fb22a commit 558758cCopy full SHA for 558758c
src/test/scala/scala/collection/immutable/TestLazyListExtensions.scala
@@ -19,12 +19,7 @@ import next._
19
20
class TestLazyListExtensions {
21
22
- // An empty list is considered cyclical, here.
23
// This method will *not* terminate for non-cyclic infinite-sized collections.
24
- // There is cycle-detection code in LazyList.scala, but I don't
25
- // see a way to access it from scala-library-next and get a boolean result.
26
- // Refactor when this moves to stdlib? For our purposes here, we only need to be able to
27
- // verify that a list expected to be cyclical, in fact is.
28
def assertIsCyclical[T](xs: LazyList[T]): Unit = {
29
assertTrue(xs.nonEmpty)
30
xs.force
0 commit comments