From 8dd69ecfa7ba683c068495cb47324ff54dc644fb Mon Sep 17 00:00:00 2001 From: Adriaan Moors Date: Mon, 13 Jan 2014 10:24:25 -0800 Subject: SI-6615 junit test --- test/junit/scala/collection/PagedSeq.scala | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/junit/scala/collection/PagedSeq.scala 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)) + } +} -- cgit v1.2.3