aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-20 10:24:27 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-20 10:24:27 -0600
commit29b02e36cf3206a0728b44a068717fbbd38d2f20 (patch)
tree71214dcaf4a56d47252baa8d135f679bc7374756 /src/test
parentf3c81a12abb34203e75e4ca8f4a06072f6be782f (diff)
downloadscala-test-more-29b02e36cf3206a0728b44a068717fbbd38d2f20.tar.gz
scala-test-more-29b02e36cf3206a0728b44a068717fbbd38d2f20.zip
implement todo
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/basic.scala16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/scala/basic.scala b/src/test/scala/basic.scala
index 81971ed..0294a3a 100644
--- a/src/test/scala/basic.scala
+++ b/src/test/scala/basic.scala
@@ -146,4 +146,20 @@ class Basic extends FunSuite {
assert(output.toString === expected)
}
+
+ test ("todo") {
+ val output = new ByteArrayOutputStream
+ val builder = new Builder(output)
+
+ builder.ok(false, "do a thing", "not working yet")
+ builder.ok(true, "some other thing", "is it?")
+ builder.doneTesting
+
+ val expected =
+ "not ok 1 do a thing # TODO not working yet\n" +
+ "ok 2 some other thing # TODO is it?\n" +
+ "1..2\n"
+
+ assert(output.toString === expected)
+ }
}