diff options
author | Paul Phillips <paulp@improving.org> | 2011-03-12 01:59:46 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-03-12 01:59:46 +0000 |
commit | e86934018bf3078a1a9751c16b95621a04575707 (patch) | |
tree | 37120b7d56e98febc33f3aac3590796e77cc55d0 /test/files/run/patch-boundary.scala | |
parent | 0254234328ab8a438aac649234bd5e12614f8ff9 (diff) | |
download | scala-e86934018bf3078a1a9751c16b95621a04575707.tar.gz scala-e86934018bf3078a1a9751c16b95621a04575707.tar.bz2 scala-e86934018bf3078a1a9751c16b95621a04575707.zip |
Fixed up the regression I slipped in with slice.
for pointing me toward the problem. No review.
Diffstat (limited to 'test/files/run/patch-boundary.scala')
-rw-r--r-- | test/files/run/patch-boundary.scala | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/files/run/patch-boundary.scala b/test/files/run/patch-boundary.scala new file mode 100644 index 0000000000..ed1a0e9fc1 --- /dev/null +++ b/test/files/run/patch-boundary.scala @@ -0,0 +1,8 @@ +object Test { + def f = collection.mutable.ArrayBuffer(1, 2, 3, 4, 5, 6, 7, 8) + def g = f.patch(4, List(1, 2), 10) + + def main(args: Array[String]): Unit = { + assert(g.size == 6) + } +} |