From fe15d706a7e2a52f4604c5f167a9f609235f53b0 Mon Sep 17 00:00:00 2001 From: Alexander Myltsev Date: Thu, 23 Jul 2015 20:56:51 +0300 Subject: Prettify console output of classof check test --- tests/run/classof.check | 5 ++++- tests/run/classof.scala | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'tests') 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]) } -- cgit v1.2.3