diff options
Diffstat (limited to 'tests/run/stringbuilder-drop.scala')
-rw-r--r-- | tests/run/stringbuilder-drop.scala | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run/stringbuilder-drop.scala b/tests/run/stringbuilder-drop.scala new file mode 100644 index 000000000..422fb2bc7 --- /dev/null +++ b/tests/run/stringbuilder-drop.scala @@ -0,0 +1,7 @@ +object Test { + def main(args: Array[String]): Unit = { + val s = (new StringBuilder ++= "hello world") dropRight 1 + assert("" + s == "hello worl") + } +} + |