On Fri, Feb 28, 2003 at 11:40:52AM +0000, Adrian Howard wrote: > I always meant to revisit the idea for Test::Output which was intended > to be a generic FILEHANDLE output testing module. Allows you to do > things like: > > output_is { hello() } "hello world\n", STDOUT, "hello world"; > output_isnt { hello() } "goodbye", STDOUT, "not goodbye"; > output_unlike { hello() } qr/bye/, STDOUT, "didn't print bye"; > output_like { hello() } qr/hello/, STDOUT, "printed hello"; > like(Test::Output->last, qr/world/, "... and world"); > > Which (I think) would do all that you need.
Yeah, I was thinking Test::Handle myself. I might code it up while at the GPW.