diff options
-rw-r--r-- | test/files/run/ReverseSeqView.scala | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/files/run/ReverseSeqView.scala b/test/files/run/ReverseSeqView.scala index 8f0ecb13da..836e4d6a1f 100644 --- a/test/files/run/ReverseSeqView.scala +++ b/test/files/run/ReverseSeqView.scala @@ -8,10 +8,10 @@ object Test extends Application { val lstv = List(1, 2, 3).view val lstvr = lstv.reverse - lstvr.iterator - lstvr.reverse - lstvr.reverseIterator - lstvr.reverseMap(_ + 1) + assert(lstvr.iterator.toList == List(3, 2, 1)) + assert(lstvr.reverse == List(1, 2, 3)) + assert(lstvr.reverseIterator.toList == List(1, 2, 3)) + assert(lstvr.reverseMap(_ + 1) == List(2, 3, 4)) } |