Skip to content

Commit

Permalink
Added colors and OK/FAIL text to the value-class test
Browse files Browse the repository at this point in the history
  • Loading branch information
muxanick committed Sep 15, 2017
1 parent ef3a2c4 commit 858d563
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
object C extends App {
println(new B().foo(null))
val res = new B().foo(null)
res match {
case 1 => println(Console.GREEN + "OK: " + res.toString + Console.RESET)
case _ => println(Console.RED + "FAIL: " + res.toString + Console.RESET)
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
object C extends App {
println(new B().bar.x)
val res = new B().bar.x
res match {
case 0 => println(Console.GREEN + "OK: " + res.toString + Console.RESET)
case _ => println(Console.RED + "FAIL: " + res.toString + Console.RESET)
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
object C extends App {
println(new B().bar("")("").x)
val res = new B().bar("")("").x
res match {
case 0 => println(Console.GREEN + "OK: " + res.toString + Console.RESET)
case _ => println(Console.RED + "FAIL: " + res.toString + Console.RESET)
}
}

0 comments on commit 858d563

Please sign in to comment.