From e86934018bf3078a1a9751c16b95621a04575707 Mon Sep 17 00:00:00 2001 From: Paul Phillips Date: Sat, 12 Mar 2011 01:59:46 +0000 Subject: Fixed up the regression I slipped in with slice. for pointing me toward the problem. No review. --- test/files/run/patch-boundary.scala | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/files/run/patch-boundary.scala (limited to 'test/files/run/patch-boundary.scala') 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) + } +} -- cgit v1.2.3