summaryrefslogtreecommitdiff
path: root/test/files/run/stringbuilder-drop.scala
diff options
context:
space:
mode:
Diffstat (limited to 'test/files/run/stringbuilder-drop.scala')
-rw-r--r--test/files/run/stringbuilder-drop.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/files/run/stringbuilder-drop.scala b/test/files/run/stringbuilder-drop.scala
index a9e5a71762..422fb2bc7c 100644
--- a/test/files/run/stringbuilder-drop.scala
+++ b/test/files/run/stringbuilder-drop.scala
@@ -1,7 +1,7 @@
object Test {
def main(args: Array[String]): Unit = {
- val s = (new StringBuilder ++= "hello world") dropRight 1 toString;
- assert(s == "hello worl")
+ val s = (new StringBuilder ++= "hello world") dropRight 1
+ assert("" + s == "hello worl")
}
}