A simple Scala Given/When/Then style specification failed
问题 I am new to Spec2, and trying to learn it. I come up with the following codes, @RunWith(classOf[JUnitRunner]) class GWTStyleSpec extends Specification { "A given-when-then example for the addition" ^ "Given the following number: ${1}" ^ number1 ^ "And a second number: ${2}" ^ number2 ^ "Then I should get: ${3}" ^ result ^ end val number1: Given[Int] = (_: String).toInt val number2: When[Int, (Int, Int)] = (n1: Int) => (s: String) => (n1, s.toInt) val result: Then[(Int, Int)] = (n: (Int, Int))