From 08a8c00be622e1ec685a2c406a23bb25f4e2bd88 Mon Sep 17 00:00:00 2001 From: Geoffrey Washburn Date: Sat, 18 Oct 2008 21:32:45 +0000 Subject: Added stringOf to ScalaRunTime. Fixed deepToString to put spaces after commas (like regular Array toString, and List, etc.). Fixed all the test cases depending on this. Fixed the interpreter to keep my mind from wandering. --- test/files/run/interpreter.scala | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/files/run/interpreter.scala') diff --git a/test/files/run/interpreter.scala b/test/files/run/interpreter.scala index dbfffd70d3..d68b6f6632 100644 --- a/test/files/run/interpreter.scala +++ b/test/files/run/interpreter.scala @@ -25,11 +25,14 @@ println("hello") // ambiguous toString problem from #547 val atom = new scala.xml.Atom() // overriding toString problem from #1404 -// commented out because the fix had to be reverted for arrays -//class S(override val toString : String) -//val fish = new S("fish") +class S(override val toString : String) +val fish = new S("fish") // Test that arrays pretty print nicely. val arr = Array("What's", "up", "doc?") +// Test that arrays pretty print nicely, even when we give them type Any +val arrInt : Any = Array(1,2,3) +// Test that nested arrays are pretty-printed correctly +val arrArrInt : Any = Array(Array(1, 2), Array(3, 4)) // implicit conversions case class Foo(n: Int) -- cgit v1.2.3