1 use Test::Base tests => 4;
3 run_is_deeply in => 'out';
7 my ($b3, $b4) = blocks('bad');
9 eval { $b3->run_filters };
10 like "$@", qr"Input to the 'flatten' filter must be a scalar";
12 eval { $b4->run_filters };
13 like "$@", qr"Can only flatten a hash or array ref";
17 --- in eval flatten array
23 --- out lines chomp array
32 --- in eval flatten array
33 [qw(one two three four)]
34 --- out lines chomp array
46 --- bad flatten: foo bar baz