summaryrefslogtreecommitdiff
path: root/src/partest
diff options
context:
space:
mode:
Diffstat (limited to 'src/partest')
-rw-r--r--src/partest/scala/tools/partest/utils/CodeTest.scala5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/partest/scala/tools/partest/utils/CodeTest.scala b/src/partest/scala/tools/partest/utils/CodeTest.scala
index 96a20b7fd5..544b95a00d 100644
--- a/src/partest/scala/tools/partest/utils/CodeTest.scala
+++ b/src/partest/scala/tools/partest/utils/CodeTest.scala
@@ -18,11 +18,14 @@ import scala.tools.nsc.Settings
/** Runner for testing code tree liftingg
*/
object CodeTest {
- def apply[T](code: Code[T], args: Array[String]) = {
+ def apply[T](code: Code[T], args: Array[String] = Array()) = {
println("testing: "+code.tree)
val reporter = new ConsoleReporter(new Settings)
val toolbox = new ToolBox(reporter, args mkString " ")
val ttree = toolbox.typeCheck(code.tree, code.manifest.tpe)
println("result = " + toolbox.showAttributed(ttree))
+ //val evaluated = toolbox.runExpr(ttree)
+ //println("evaluated = "+evaluated)
+ //evaluated
}
}