Subject: | filter functions don't seem to work |
use t::Test;
plan tests => 1 * blocks;
run_is input => 'expected';
sub my_len {
return scalar(@_);
}
__END__
=== Test one
--- input lines my_len
foo
bar
baz
--- expected eval
3
1..1
not ok 1 - Test one
# Failed test 'Test one'
# in t/molset.t at line 3.
# got: 'foo
# bar
# baz
# '
# expected: '3'
# Looks like you failed 1 test of 1.