diff options
author | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 10:24:25 -0800 |
---|---|---|
committer | Adriaan Moors <adriaan.moors@typesafe.com> | 2014-01-13 10:24:48 -0800 |
commit | 8dd69ecfa7ba683c068495cb47324ff54dc644fb (patch) | |
tree | 9055d073d6ae07e25e69a1834c1a1a3d10a3fec5 /test | |
parent | 0a43c263568760ad291cbc76a98e1eb2de9292a7 (diff) | |
download | scala-8dd69ecfa7ba683c068495cb47324ff54dc644fb.tar.gz scala-8dd69ecfa7ba683c068495cb47324ff54dc644fb.tar.bz2 scala-8dd69ecfa7ba683c068495cb47324ff54dc644fb.zip |
SI-6615 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)) + } +} |