
Another whoa moment today -- ran across a pointed, concise Scala code snippet in Eric Torreborre's announcement of the specs 1.1 testing library..."a calculator" should { "provide an add operation" in { "a" | "b" | "result" |> 1 ! 2 ! 3 | 5 ! 2 ! 7 | 3 ! 0 ! 3 | { (a: Int, b: Int, result: Int) => { calc.add(a, b) must_== result } } }} The above is a great example of Scala's deep DSL potenti…
© 2009 Created by Steve Yen on Ning. Create a Ning Network!