Specs2 - How to define complex objects for Given/When/Then steps
问题 Specs2's documentation and samples show some codes about the use of Given/Then/When style in an acceptance test. Here one of them: "A given-when-then example for the addition" ^ "Given the following number: ${1}" ^ number1 ^ "And a second number: ${2}" ^ number2 ^ "And a third number: ${3}" ^ number3 val number1: Given[Int] = (_:String).toInt val number2: When[Int, (Int, Int)] = (n1: Int) => (s: String) => (n1, s.toInt) val number3: When[Seq[Int], Seq[Int]] = (numbers: Seq[Int]) => (s: String