File: filters-append.t

package info (click to toggle)
libtest-base-perl 0.89-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 676 kB
  • sloc: perl: 936; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 302 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use Test::Base tests => 2;

filters qw(chomp +bar foo);

is next_block->text, "this,foo,that,bar";
# 2nd test is needed
is next_block->text, "this,foo,that,bar";

sub foo { $_[0] . ",foo" }
sub bar { $_[0] . ",bar" }
sub that { $_[0] . ",that" }

__DATA__
===
--- text that
this
===
--- text that
this