diff options
author | Eugene Burmako <xeno.by@gmail.com> | 2012-06-30 03:37:17 +0200 |
---|---|---|
committer | Eugene Burmako <xeno.by@gmail.com> | 2012-07-02 11:48:09 +0200 |
commit | 3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c (patch) | |
tree | 7583751eced61efe1e02686e2f068409ce07ed38 /test/files/run/showraw_tree_ids.scala | |
parent | cba0cbb892e991a0946270d1a7da63993f248225 (diff) | |
download | scala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.tar.gz scala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.tar.bz2 scala-3237b1cd6fc2b2029080fe9d4b2b76d43ab8011c.zip |
further improves reflection printers
Diffstat (limited to 'test/files/run/showraw_tree_ids.scala')
-rw-r--r-- | test/files/run/showraw_tree_ids.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/files/run/showraw_tree_ids.scala b/test/files/run/showraw_tree_ids.scala index b56b8b4476..ea9a3cd4c2 100644 --- a/test/files/run/showraw_tree_ids.scala +++ b/test/files/run/showraw_tree_ids.scala @@ -3,6 +3,7 @@ import scala.reflect.runtime.universe._ object Test extends App { val tree1 = reify(new collection.immutable.HashMap[String, String]) val tree2 = reify(new collection.mutable.HashMap[String, String]) - println(showRaw(tree1.tree, printIds = true)) - println(showRaw(tree2.tree, printIds = true)) + def stabilize(s: String) = """#\d+""".r.replaceAllIn(s, "#<id>") + println(stabilize(showRaw(tree1.tree, printIds = true))) + println(stabilize(showRaw(tree2.tree, printIds = true))) }
\ No newline at end of file |