diff options
author | Alexander Myltsev <alexander.myltsev@phystech.edu> | 2015-07-23 20:56:51 +0300 |
---|---|---|
committer | Alexander Myltsev <alexander.myltsev@phystech.edu> | 2015-07-23 21:09:12 +0300 |
commit | fe15d706a7e2a52f4604c5f167a9f609235f53b0 (patch) | |
tree | 8550c45e915147af11cd9cf26aed59c425562d56 | |
parent | b3ca8e167bd2f3871dab7d394ee70c6132295a31 (diff) | |
download | dotty-fe15d706a7e2a52f4604c5f167a9f609235f53b0.tar.gz dotty-fe15d706a7e2a52f4604c5f167a9f609235f53b0.tar.bz2 dotty-fe15d706a7e2a52f4604c5f167a9f609235f53b0.zip |
Prettify console output of classof check test
-rw-r--r-- | tests/run/classof.check | 5 | ||||
-rw-r--r-- | tests/run/classof.scala | 6 |
2 files changed, 7 insertions, 4 deletions
diff --git a/tests/run/classof.check b/tests/run/classof.check index 9476c014d..e42026e7a 100644 --- a/tests/run/classof.check +++ b/tests/run/classof.check @@ -8,16 +8,19 @@ int long float double -Class types + +Class types: class SomeClass class ValueClass class scala.collection.immutable.List class scala.Tuple2 + Arrays: class [Lscala.runtime.BoxedUnit; class [I class [D class [Lscala.collection.immutable.List; + Functions: interface scala.Function2 interface scala.Function1 diff --git a/tests/run/classof.scala b/tests/run/classof.scala index bdbcef4a1..734838b30 100644 --- a/tests/run/classof.scala +++ b/tests/run/classof.scala @@ -18,19 +18,19 @@ object Test { println(classOf[Float]) println(classOf[Double]) - println("Class types") + println("\nClass types:") println(classOf[SomeClass]) println(classOf[ValueClass]) println(classOf[List[Array[Float]]]) println(classOf[(String, Map[Int, String])]) - println("Arrays:") + println("\nArrays:") println(classOf[Array[Unit]]) println(classOf[Array[Int]]) println(classOf[Array[Double]]) println(classOf[Array[List[String]]]) - println("Functions:") + println("\nFunctions:") println(classOf[(Int, Int) => Unit]) println(classOf[Int => Boolean]) } |