import org.specs2._
class HelloSpec extends Specification with matcher.DataTables { def is =
"adding integers should just work in scala" ! e1
def e1 =
"a" | "b" | "c" | // the header of the table, with `|` separated strings
2 ! 2 ! 4 | // an example row
1 ! 1 ! 2 |> { // the > operator to "execute" the table
(a, b, c) => a + b must_== c // the expectation to check on each row
}
}
Why does the following summary show +
after the name of the spec?
[info] HelloSpec+ adding integers should just work in scala
[info] Total for specification HelloSpec
[info] Finished in 11 ms
[info] 1 example, 0 failure, 0 error
[info]
[info] Passed: Total 1, Failed 0, Errors 0, Passed 1
[success] Total time: 1 s, completed Jan 29, 2015 12:05:44 AM
Absolutely, I'll fix that. There was an evolution a few versions ago in terms of how things are being displayed, after the introduction of
s2
strings but I didn't think of checking the corresponding doc.