aboutsummaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-02-28 02:47:37 -0600
committerJesse Luehrs <doy@tozt.net>2013-02-28 02:48:25 -0600
commit6f4f0015aa32de0e2eda11bfa11144961fd70480 (patch)
tree814c4f937b6ccb7e66e1c6fe7ce6c5c61e3949f4 /src/test
parente071cf04ba20fd1608f138abe6e03878c7fe70bf (diff)
downloadscala-test-more-6f4f0015aa32de0e2eda11bfa11144961fd70480.tar.gz
scala-test-more-6f4f0015aa32de0e2eda11bfa11144961fd70480.zip
eliminate Message
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/org/perl8/test/TestMoreTest.scala6
-rw-r--r--src/test/scala/org/perl8/test/tap/TestBuilderTest.scala14
2 files changed, 10 insertions, 10 deletions
diff --git a/src/test/scala/org/perl8/test/TestMoreTest.scala b/src/test/scala/org/perl8/test/TestMoreTest.scala
index 8555a71..317aaaf 100644
--- a/src/test/scala/org/perl8/test/TestMoreTest.scala
+++ b/src/test/scala/org/perl8/test/TestMoreTest.scala
@@ -43,17 +43,17 @@ class TestMoreTest extends TestMore {
diag("pass")
pass("it works!")
- pass()
+ pass
skip(2, "don't do this yet") {
pass("skipped")
- pass()
+ pass
}
todo("not working yet") {
diag("fail")
fail("it doesn't work")
- fail()
+ fail
}
}
diff --git a/src/test/scala/org/perl8/test/tap/TestBuilderTest.scala b/src/test/scala/org/perl8/test/tap/TestBuilderTest.scala
index 6aff4a1..d59541a 100644
--- a/src/test/scala/org/perl8/test/tap/TestBuilderTest.scala
+++ b/src/test/scala/org/perl8/test/tap/TestBuilderTest.scala
@@ -160,19 +160,19 @@ class TestBuilderTest extends TestMore {
builder.bailOut("oh no!")
Console.withOut(oldOut) {
Console.withErr(oldErr) {
- fail()
+ fail
}
}
}
catch {
case e: BailOutException => Console.withOut(oldOut) {
Console.withErr(oldErr) {
- is(e.message, "oh no!")
+ is(e.message, "Bail out! oh no!")
}
}
case _: Throwable => Console.withOut(oldOut) {
Console.withErr(oldErr) {
- fail()
+ fail
}
}
}
@@ -181,7 +181,7 @@ class TestBuilderTest extends TestMore {
val expected =
"ok 1\n" +
- "Bail out! oh no!\n"
+ "Bail out! oh no!\n"
is(output.toString, expected)
}
@@ -221,7 +221,7 @@ class TestBuilderTest extends TestMore {
val builder = new TestBuilder
builder.ok(false)
builder.skip("not now")
- builder.skip()
+ builder.skip
builder.doneTesting
}
}
@@ -241,8 +241,8 @@ class TestBuilderTest extends TestMore {
Console.withOut(output) {
Console.withErr(output) {
val builder = new TestBuilder
- builder.ok(false, "do a thing", todo = "not working yet")
- builder.ok(true, todo = "is it?")
+ builder.okTodo(false, "do a thing", todo = "not working yet")
+ builder.okTodo(true, todo = "is it?")
builder.doneTesting
}
}