Fix ->repeat with iterator, make t/repeat.t pass (formerly t/todo-repeat.t) repeat
authorJakub Narebski <jnareb@gmail.com>
Wed, 12 Jan 2011 11:47:54 +0000 (12:47 +0100)
committerJakub Narebski <jnareb@gmail.com>
Wed, 12 Jan 2011 11:56:30 +0000 (12:56 +0100)
commit15059df59b76d2cfc84a97dd222835a235bd69b3
treec75c61f24a46992e7bbb947b6c5e43d19e890950
parent8af6dead371dda2793a0649592cfa0dcf905e5bc
Fix ->repeat with iterator, make t/repeat.t pass (formerly t/todo-repeat.t)

The change to ->repeat method in HTML::Zoom::FilterBuilder assumes
that when it is passed code reference, it is meant to be used as
iterator (i.e. turned into stream using 'stream_from_code').

This made t/todo-repeat.t pass.  This test got renamed to t/repeat.t
now that it no longer needs to be skipped.  Instead of just testing
that there are no errors, it checks that ->repeat(sub { ... }) works
correctly.  Added test for equivalent ->repeat([ ... ]).

The t/flush.t test no longer needs workaround for ->repeat() (and it
doesn't work with workaround now, hmmm...).
lib/HTML/Zoom/FilterBuilder.pm
t/flush.t
t/repeat.t [new file with mode: 0644]
t/todo-repeat.t [deleted file]