These are chat archives for etorreborre/specs2
IsIterabletypeclass as suggested above to give one set of matchers for both
def containPattern[T](t: =>String) = ContainWithResult(matcherIsValueCheck(new BeMatching(t))) ^^ ((ts: Traversable[T]) => ts.toSeq.map(_.toString))in TraverableMatchers, the need to add a
mapthat returns the exact same type as the input on the typeclass to port this line was made difficult by
CanBuildFromin order to enable this
mapthat returns the correct type, and
NonEmptyListnot having an implementation of said type class. I could write an instance of
NonEmptyListbut it feels like this is gettng quite complicated, don't know if you have any thoughts @etorreborre ?