diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 12:00:41 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 12:00:41 -0800 |
commit | 8bc8603e333c730b00fc306899ece643ad892fbe (patch) | |
tree | f65af349a7b0bf1342c20148058333004e25c118 /test | |
parent | 0a96a20931d0aa5b2cd0da0758c507a9e2e805f6 (diff) | |
parent | 8dd69ecfa7ba683c068495cb47324ff54dc644fb (diff) | |
download | scala-8bc8603e333c730b00fc306899ece643ad892fbe.tar.gz scala-8bc8603e333c730b00fc306899ece643ad892fbe.tar.bz2 scala-8bc8603e333c730b00fc306899ece643ad892fbe.zip |
Merge pull request #3361 from adriaanm/pr3303-test
junit test
Diffstat (limited to 'test')
-rw-r--r-- | test/junit/scala/collection/PagedSeq.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/junit/scala/collection/PagedSeq.scala b/test/junit/scala/collection/PagedSeq.scala new file mode 100644 index 0000000000..5f83cf6f31 --- /dev/null +++ b/test/junit/scala/collection/PagedSeq.scala @@ -0,0 +1,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)) + } +} |