|
NAMETest::Base::Less - Limited version of Test::Base. SYNOPSIS use Test::Base::Less;
filters {
input => [qw/eval/],
};
for my $block (blocks) {
is($block->input, $block->expected);
}
done_testing;
__DATA__
===
--- input: 4*2
--- expected: 8
DESCRIPTIONThis is a less clever version of Test::Base. FUNCTIONSThis module exports all Test::More's exportable functions, and following functions:
DEFAULT FILTERSThis module provides only few filters. If you want to add more filters, pull-reqs welcome. (I only merge a patch using no depended modules)
REGISTER YOUR OWN FILTERYou can register your own filter by following form: use Digest::MD5 qw/md5_hex/;
Test::Base::Less::register_filter(md5_hex => \&md5_hex);
USE CODEREF AS FILTERYou can use a CodeRef as filter. use Digest::MD5 qw/md5_hex/;
filters {
input => [\&md5_hex],
};
SEE ALSOMost of code is taken from Test::Base. Thanks Ingy.
|