Open GoogleCodeExporter opened 8 years ago
Can you supply a specific example of how you'd like to chain traversable
matchers?
Original comment by b...@artima.com
on 31 Dec 2012 at 7:56
val cats = List(
Cat(name = "Felix", age = 7).
Cat(name = "Silvester", age = 9),
Cat(name = "Garfield", age = 10)
)
// some possibilities
cats must contain(catWith(name = "Felix"))
cats must contain(catWithAge(gt(8)))
cats must contain(catWith(_.name equal("Garfield"))
Original comment by shai.yal...@gmail.com
on 31 Dec 2012 at 9:38
Sorry for the delay in responding (still on vacation). We are in fact putting
together a way to do that kind of thing right now. Should make it into 2.0.M6,
which should come out before the end of January.
Original comment by b...@artima.com
on 6 Jan 2013 at 10:44
Original issue reported on code.google.com by
shai.yal...@gmail.com
on 31 Dec 2012 at 7:48