aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-20 14:13:26 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-20 14:13:26 -0600
commita8e9c9235e1faca50c8397cb7940da7d0d235042 (patch)
treed20225c3bcc82027be35978b708edb4fc6188462 /src/test
parent2562fd2e5b35188dc934042e819944f7782dfe82 (diff)
downloadscala-test-more-a8e9c9235e1faca50c8397cb7940da7d0d235042.tar.gz
scala-test-more-a8e9c9235e1faca50c8397cb7940da7d0d235042.zip
diag should comment each line in the message
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/builder/basic.scala3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/scala/builder/basic.scala b/src/test/scala/builder/basic.scala
index bae9038..862d80f 100644
--- a/src/test/scala/builder/basic.scala
+++ b/src/test/scala/builder/basic.scala
@@ -68,6 +68,7 @@ class Basic extends FunSuite with BeforeAndAfter {
builder.ok(false, "the test passes")
builder.diag("got false, expected true")
builder.ok(true)
+ builder.diag("ending\nnow")
builder.doneTesting
val expected =
@@ -75,6 +76,8 @@ class Basic extends FunSuite with BeforeAndAfter {
"not ok 2 the test passes\n" +
"# got false, expected true\n" +
"ok 3\n" +
+ "# ending\n" +
+ "# now\n" +
"1..3\n" +
"# Looks like you failed 1 test of 3.\n"