use strict; use warnings; use Test::Base; plan tests => 1 * blocks; run_compare input => 'expected'; use HTML::StickyQuery::DoCoMoGUID; sub filter { my $html = shift; my $guid = HTML::StickyQuery::DoCoMoGUID->new; $guid->sticky( scalarref => \$html ); } __END__ === --- input filter chomp
foo
foo
--- expected chomp
foo
foo
=== --- input filter chomp
foo
--- expected chomp
foo
=== --- input filter chomp
foo
--- expected chomp
foo
=== --- input filter chomp foo
--- expected chomp foo
=== --- input filter chomp
foo --- expected chomp
foo