summaryrefslogtreecommitdiff
path: root/test/junit/scala/collection/PagedSeq.scala
blob: 5f83cf6f31a18d02475635d684e8231510bfa8ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package scala.collection.immutable

import org.junit.runner.RunWith
import org.junit.runners.JUnit4
import org.junit.Test
import org.junit.Assert._

/* Test for SI-6615  */
@RunWith(classOf[JUnit4])
class PagedSeqTest {
  @Test
  def rovingDoesNotNPE(): Unit = {
    // should not NPE, and should equal the given Seq
    assertEquals(Seq('a'), PagedSeq.fromStrings(List.fill(5000)("a")).slice(4096, 4097))
  }
}