Permalink
Browse files

SI-6615 junit test

  • Loading branch information...
adriaanm committed Jan 13, 2014
1 parent 0a43c26 commit 8dd69ecfa7ba683c068495cb47324ff54dc644fb
Showing with 16 additions and 0 deletions.
  1. +16 −0 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))
+ }
+}

0 comments on commit 8dd69ec

Please sign in to comment.