diff options
author | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-18 21:32:45 +0000 |
---|---|---|
committer | Geoffrey Washburn <geoffrey.washburn@epfl.ch> | 2008-10-18 21:32:45 +0000 |
commit | 08a8c00be622e1ec685a2c406a23bb25f4e2bd88 (patch) | |
tree | 4a08fa05367f46d92de55c24dbb4d7cf182ab8f0 /test/files/run/interpreter.scala | |
parent | b2e8634221054e1f0bc989c8c165aafa30e0528b (diff) | |
download | scala-08a8c00be622e1ec685a2c406a23bb25f4e2bd88.tar.gz scala-08a8c00be622e1ec685a2c406a23bb25f4e2bd88.tar.bz2 scala-08a8c00be622e1ec685a2c406a23bb25f4e2bd88.zip |
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.
Diffstat (limited to 'test/files/run/interpreter.scala')
-rw-r--r-- | test/files/run/interpreter.scala | 9 |
1 files changed, 6 insertions, 3 deletions
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) |