PASSED
Test file Test results Time %
t/args.t
                                 
  • 1..17
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 7 tests
  • ok 4 - template text 1 processed OK: [% args(a b c) %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% args(a b c d=e f=g) %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% args(a, b, c, d=e, f=g) %]
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% args(a, b, c, d=e, f=g,) %]
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% args(d=e, a, b, f=g, c) %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% obj.foo(d=e, a, b, f=g, c) %]
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% obj.foo(d=e, a, b, f=g, c).sp...
  • ok 17 - template text 7 matched expected
0.21s 100.0%
t/autoform.t
 
  • 1..0 # skipped: Text::Autoformat module not installed
1.13s n/a
t/base.t
                                               
  • 1..24
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
  • ok 16
  • ok 17
  • ok 18
  • ok 19
  • ok 20
  • ok 21
  • ok 22 - package version
  • ok 23 - created a version object
  • ok 24 - object version
0.17s 100.0%
t/binop.t
                                                                                                                 
  • 1..57
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 27 tests
  • ok 4 - template text 1 processed OK: maybe\n[% IF yes %]\nyes\n[% END %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% IF yes %]\nyes\n[% ELSE %]\nno \n...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% IF yes %]\nyes\n[% ELSE %]\nno \n...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% IF yes and true %]\nyes\n[% ELS...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% IF yes && true %]\nyes\n[% ELSE...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% IF yes && sad || happy %]\nyes...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% IF yes AND ten && true and tw...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% IF ! yes %]\nno\n[% ELSE %]\nyes...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% UNLESS yes %]\nno\n[% ELSE %]\ny...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% "yes" UNLESS no %]
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% IF ! yes %]\nno\n[% ELSE %]\nyes...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% IF yes || no %]\nyes\n[% ELSE %...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% IF yes || no || true || false...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% IF yes or no %]\nyes\n[% ELSE %...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% IF not false and not sad %]\ny...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% IF ten == 10 %]\nyes\n[% ELSE %...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% IF ten == twenty %]\nI canna b...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% IF ten >= twenty or false %]\n...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% IF ten >= twenty or false %]\n...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% IF ten > twenty %]\nno\n[% ELSI...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% IF ten != 10 %]\nno\n[% ELSIF t...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% IF alpha AND omega %]\nalpha a...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% IF omega AND alpha %]\nomega a...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: [% IF alpha OR omega %]\nalpha an...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: [% IF omega OR alpha %]\nalpha an...
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: [% small = 5\n mid = 7\n big...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: [% 10 mod 4 +%] [% 10 MOD 4 +%]\n...
  • ok 57 - template text 27 matched expected
0.73s 100.0%
t/block.t
                                 
  • 1..17
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 7 tests
  • ok 4 - template text 1 processed OK: [% BLOCK block1 %]\nThis is the o...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% BLOCK block1 %]\nThis is the o...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE block_a +%]\n[% INCLUD...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% INCLUDE header \n title = 'A...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% BLOCK foo:bar %]\nblah\n[% END ...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% BLOCK 'hello html' -%]\nHello ...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: <[% INCLUDE foo %]>\n[% BLOCK foo...
  • ok 17 - template text 7 matched expected
0.59s 100.0%
t/blocks.t
                             
  • 1..15
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 6 tests
  • ok 4 - template text 1 processed OK: [% TRY; INCLUDE blockdef/block1;...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE blockdef/block1 %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE blockdef/block1 a='am...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TRY; INCLUDE blockdef/none; C...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% INCLUDE "$dir/blockdef/block1...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% BLOCK one -%]\nblock one\n[% BL...
  • ok 15 - template text 6 matched expected
0.51s 100.0%
t/capture.t
                         
  • 1..13
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 5 tests
  • ok 4 - template text 1 processed OK: [% BLOCK foo %]\nThis is block fo...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% d = BLOCK %]\nThis is the bloc...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% e = IF a == 'alpha' %]\na is [...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% a = FOREACH b = [1 2 3] %]\n[%...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% BLOCK userinfo %]\nname: [% us...
  • ok 13 - template text 5 matched expected
0.34s 100.0%
t/case.t
                               
  • 1..16
  • ok 1
  • ok 2 - running test_expect()
  • ok 3 - template processor is engaged
  • ok 4 - input read and split into 6 tests
  • ok 5 - template text 1 processed OK: [% include = a %]\n[% for = b %]\n...
  • ok 6 - template text 1 matched expected
  • ok 7 - template text 2 processed OK: [% IF a AND b %]\ngood\n[% ELSE %]...
  • ok 8 - template text 2 matched expected
  • ok 9 - template text 3 processed OK: [% IF a and b %]\ngood\n[% ELSE %]...
  • ok 10 - template text 3 matched expected
  • ok 11 - template text 4 processed OK: [% include = a %]\n[% include %]
  • ok 12 - template text 4 matched expected
  • ok 13 - template text 5 processed OK: [% include foo bar='baz' %]\n[% B...
  • ok 14 - template text 5 matched expected
  • ok 15 - template text 6 processed OK: [% 10 div 3 %] [% 10 DIV 3 +%]\n[...
  • ok 16 - template text 6 matched expected
0.35s 100.0%
t/cgi.t
                             
  • 1..15
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 6 tests
  • ok 4 - template text 1 processed OK: [% USE cgi = CGI('id=abw&name=An...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: name: [% global.cgi.param('name'...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% FOREACH key = global.cgi.para...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% FOREACH key = global.cgi.para...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% FOREACH x = global.cgi.checkb...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE cgi('item=foo&items=one&i...
  • ok 15 - template text 6 matched expected
0.54s 100.0%
t/chomp.t
                                                                                                                                       
  • 1..68
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
  • ok 16
  • ok 17
  • ok 18
  • ok 19
  • ok 20
  • ok 21
  • ok 22
  • ok 23
  • ok 24
  • ok 25
  • ok 26
  • ok 27
  • ok 28
  • ok 29
  • ok 30
  • ok 31
  • ok 32
  • ok 33
  • ok 34
  • ok 35
  • ok 36
  • ok 37
  • ok 38 - running test_expect()
  • ok 39 - template processor is engaged
  • ok 40 - input read and split into 14 tests
  • ok 41 - template text 1 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 42 - template text 1 matched expected
  • ok 43 - template text 2 processed OK:
  • ok 44 - template text 2 matched expected
  • ok 45 - template text 3 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 46 - template text 3 matched expected
  • ok 47 - template text 4 processed OK:
  • ok 48 - template text 4 matched expected
  • ok 49 - template text 5 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 50 - template text 5 matched expected
  • ok 51 - template text 6 processed OK:
  • ok 52 - template text 6 matched expected
  • ok 53 - template text 7 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 54 - template text 7 matched expected
  • ok 55 - template text 8 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 56 - template text 8 matched expected
  • ok 57 - template text 9 processed OK:
  • ok 58 - template text 9 matched expected
  • ok 59 - template text 10 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 60 - template text 10 matched expected
  • ok 61 - template text 11 processed OK:
  • ok 62 - template text 11 matched expected
  • ok 63 - template text 12 processed OK: begin[% a = 10; b = 20 %]\n [...
  • ok 64 - template text 12 matched expected
  • ok 65 - template text 13 processed OK:
  • ok 66 - template text 13 matched expected
  • ok 67 - template text 14 processed OK: begin[% a = 10; b = 20 %] \n[...
  • ok 68 - template text 14 matched expected
0.50s 100.0%
t/compile1.t
                             
  • 1..15
  • ok 1
  • ok 2
  • ok 3 - running test_expect()
  • ok 4 - template processor is engaged
  • ok 5 - input read and split into 4 tests
  • ok 6 - template text 1 processed OK: [% INCLUDE evalperl %]
  • ok 7 - template text 1 matched expected
  • ok 8 - template text 2 processed OK: [% TRY %]\n[% INCLUDE foo %]\n[% C...
  • ok 9 - template text 2 matched expected
  • ok 10 - template text 3 processed OK: [% META author => 'abw' version ...
  • ok 11 - template text 3 matched expected
  • ok 12 - template text 4 processed OK: [% INCLUDE baz %]
  • ok 13 - template text 4 matched expected
  • ok 14
  • ok 15
0.50s 100.0%
t/compile2.t
                         
  • 1..13
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5 - running test_expect()
  • ok 6 - template processor is engaged
  • ok 7 - input read and split into 3 tests
  • ok 8 - template text 1 processed OK: [% INCLUDE foo a = 'any value' %...
  • ok 9 - template text 1 matched expected
  • ok 10 - template text 2 processed OK: [% META author => 'billg' versio...
  • ok 11 - template text 2 matched expected
  • ok 12 - template text 3 processed OK: [% META author => 'billg' versio...
  • ok 13 - template text 3 matched expected
0.42s 100.0%
t/compile3.t
                         
  • 1..13
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6 - running test_expect()
  • ok 7 - template processor is engaged
  • ok 8 - input read and split into 2 tests
  • ok 9 - template text 1 processed OK: [% META author => 'albert' versi...
  • ok 10 - template text 1 matched expected
  • ok 11 - template text 2 processed OK: [%# we want to break 'compile' t...
  • ok 12 - template text 2 matched expected
  • ok 13
6.48s 100.0%
t/compile4.t
                     
  • 1..11
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 4 tests
  • ok 4 - template text 1 processed OK: [% TRY %]\n[% INCLUDE foo %]\n[% C...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% META author => 'abw' version ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% TRY %]\n[% INCLUDE bar/baz wor...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% INCLUDE "$root/src/blam" %]
  • ok 11 - template text 4 matched expected
0.58s 100.0%
t/compile5.t
                       
  • 1..12
  • ok 1
  • ok 2
  • ok 3
  • ok 4 - running test_expect()
  • ok 5 - template processor is engaged
  • ok 6 - input read and split into 3 tests
  • ok 7 - template text 1 processed OK: [% INCLUDE foo a = 'any value' %...
  • ok 8 - template text 1 matched expected
  • ok 9 - template text 2 processed OK: [% META author => 'billg' versio...
  • ok 10 - template text 2 matched expected
  • ok 11 - template text 3 processed OK: [% INCLUDE "$root/src/blam" %]
  • ok 12 - template text 3 matched expected
0.42s 100.0%
t/config.t
                                                                                       
  • 1..44
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
  • ok 16
  • ok 17
  • ok 18
  • ok 19
  • ok 20
  • ok 21
  • ok 22
  • ok 23
  • ok 24
  • ok 25
  • ok 26
  • ok 27
  • ok 28
  • ok 29
  • ok 30
  • ok 31
  • ok 32
  • ok 33
  • ok 34
  • ok 35
  • ok 36
  • ok 37
  • ok 38
  • ok 39
  • ok 40
  • ok 41
  • ok 42
  • ok 43
  • ok 44
0.32s 100.0%
t/constants.t
                                                                                 
  • 1..41
  • ok 1 - created constants namespace
  • ok 2 - author match
  • ok 3 - single match
  • ok 4 - double match
  • ok 5 - col.back match
  • ok 6 - col.text match
  • ok 7 - created Template::Directive factory
  • ok 8 - created Template::Parser parser
  • ok 9
  • ok 10 - col.back folded
  • ok 11 - col.user unfolded
  • ok 12 - created Template::Parser parser
  • ok 13
  • ok 14 - col.back folded
  • ok 15 - col.user unfolded
  • ok 16 - created tt1
  • ok 17 - created tt2
  • ok 18 - created tt3
  • ok 19 - running test_expect()
  • ok 20 - template processor is engaged
  • ok 21 - input read and split into 10 tests
  • ok 22 - template text 1 processed OK: hello [% const.author %]\n[% "bac...
  • ok 23 - template text 1 matched expected
  • ok 24 - template text 2 processed OK: [% const.col.keys.sort.join(', '...
  • ok 25 - template text 2 matched expected
  • ok 26 - template text 3 processed OK: [% const.col.keys.sort.join(cons...
  • ok 27 - template text 3 matched expected
  • ok 28 - template text 4 processed OK: zero [% const.counter %]\none [% ...
  • ok 29 - template text 4 matched expected
  • ok 30 - template text 5 processed OK: [% "$constants.author thinks " %...
  • ok 31 - template text 5 matched expected
  • ok 32 - template text 6 processed OK: [% "$const.author thinks " -%]\n[...
  • ok 33 - template text 6 matched expected
  • ok 34 - template text 7 processed OK: no [% const.foo %]?
  • ok 35 - template text 7 matched expected
  • ok 36 - template text 8 processed OK: fave [% const.fave %]\ncol [% co...
  • ok 37 - template text 8 matched expected
  • ok 38 - defer references processed OK: [% "$key\n" FOREACH key = consta...
  • ok 39 - defer references matched expected
  • ok 40 - template text 10 processed OK: a: [% const.author %]\nb: [% cons...
  • ok 41 - template text 10 matched expected
0.42s 100.0%
t/context.t
                                                                                                           
  • 1..54
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
  • ok 16
  • ok 17
  • ok 18
  • ok 19
  • ok 20
  • ok 21
  • ok 22
  • ok 23
  • ok 24
  • ok 25
  • ok 26
  • ok 27
  • ok 28
  • ok 29
  • ok 30
  • ok 31
  • ok 32
  • ok 33
  • ok 34
  • ok 35
  • ok 36
  • ok 37
  • ok 38
  • ok 39
  • ok 40
  • ok 41
  • ok 42
  • ok 43
  • ok 44
  • ok 45
  • ok 46
  • ok 47
  • ok 48
  • ok 49
  • ok 50
  • ok 51
  • ok 52
  • ok 53
  • ok 54
0.38s 100.0%
t/datafile.t
                 
  • 1..9
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 3 tests
  • ok 4 - template text 1 processed OK: [% USE userlist = datafile(dataf...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE userlist = datafile(dataf...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE userlist = datafile(dataf...
  • ok 9 - template text 3 matched expected
0.32s 100.0%
t/date.t
                                                                 
  • 1..33
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 15 tests
  • ok 4 - template text 1 processed OK: [% USE date %]\nLet's hope the ye...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE date(time => time) %]\ndef...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE date(time => time) %]\n[% ...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE date(time => time, format...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE date(format = format.date...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE date(format = format.date...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE date(format = format.date...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE english = date(format => ...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% USE english = date(format => ...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% USE date %]\n[% date.format('4...
  • ok 23 - template text 10 matched expected
  • ok 24 - September 13th 2000 processed OK: [% USE day = date(format => '%A'...
  • ok 25 - September 13th 2000 matched expected
  • ok 26 - template text 12 processed OK: [% TRY %]\n[% USE date %]\n[% date...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% USE date %]\n[% template.name ...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% IF date_calc -%]\n[% USE date;...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% USE date;\n date.format('12:...
  • ok 33 - template text 15 matched expected
1.57s 100.0%
t/debug.t
                                           
  • 1..22
  • ok 1 - created a dummy object
  • ok 2 - created flags
  • ok 3 - flags value is 24
  • ok 4 - got more flags back
  • ok 5 - dirs, stash
  • ok 6 - bad flags
  • ok 7 - error correct
  • ok 8 - running test_expect()
  • ok 9 - template processor is engaged
  • ok 10 - input read and split into 6 tests
  • ok 11 - template text 1 processed OK: Hello World\nfoo: [% foo %]
  • ok 12 - template text 1 matched expected
  • ok 13 - template text 2 processed OK: Hello World\nfoo: [% foo %]
  • ok 14 - template text 2 matched expected
  • ok 15 - template text 3 processed OK: Hello World\nfoo: [% foo %]\n[% DE...
  • ok 16 - template text 3 matched expected
  • ok 17 - template text 4 processed OK: [% DEBUG off %]\nHello World\nfoo:...
  • ok 18 - template text 4 matched expected
  • ok 19 - ping pong processed OK: foo: [% foo %]\nhello [% "$baz.pi...
  • ok 20 - ping pong matched expected
  • ok 21 - template text 6 processed OK: foo: [% foo %]\n[% INCLUDE foo a=...
  • ok 22 - template text 6 matched expected
0.40s 100.0%
t/directive.t
                                                                                                                                             
  • 1..71
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 34 tests
  • ok 4 - template text 1 processed OK: [% a %]\n[%a%]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: pre [% a %]\npre[% a %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% a %] post\n[% a %]post
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: pre [% a %] post\npre[% a %]post
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% a %][%b%][% c %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% \na %][%b\n%][%\nc\n%][%\n ...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [%# this is a comment which shou...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% # this is a one-line comment\n...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% # this is a two-line comment\n...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% a = c # this is a comment o...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% a %]\n[% b %]
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% a -%]\n[% b %]
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% a -%]\n [% b %]
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% a %]\n[%- b %]
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% a %]\n [%- b %]
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: start\n[% a %]\n[% b %]\nend
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: start\n[%- a %]\n[% b -%]\nend
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: start\n[%- a -%]\n[% b -%]\nend
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: start\n[%- a %]\n[%- b -%]\nend
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: start\n[% a %]\nmid\n[% b %]\nend
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: start\n [% a %]\nmid\n [% b %]\n...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: start\n[%+ a %]\nmid\n[% b %]\nend
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: start\n [%+ a %]\nmid\n[% b %]\nen...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: start\n [%- a %]\nmid\n [%- b %...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: start\n[% a %]\nmid\n[% b %]\nend
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: start\n [% a %]\nmid\n [% b %] ...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: start\n[% a +%]\nmid\n[% b %]\nend
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: start\n[% a +%] \n[% b +%]\nend
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: start\n[% a -%]\nmid\n[% b -%]\nend
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% INCLUDE trimme %]
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% BLOCK foo %]\n\nthis is block f...
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: <foo>[% PROCESS foo %]</foo>\n<ba...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% r; r = s; "-"; r %].
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% IF a; b; ELSIF c; d; ELSE; s;...
  • ok 71 - template text 34 matched expected
0.48s 100.0%
t/directry.t
                                                             
  • 1..31
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 14 tests
  • ok 4 - template text 1 processed OK: [% TRY ;\n USE Directory ;\n ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% TRY ;\n USE Directory('/no...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE d = Directory(dir, nostat...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE d = Directory(dir) -%]\n[%...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE directory(dir) -%]\n[% dir...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE d = Directory(dir) -%]\n[%...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE dir = Directory(dir) -%]\n...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE dir = Directory(dir) -%]\n...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% USE d = Directory(dir, recurs...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% USE dir = Directory(dir, recu...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% USE dir = Directory(dir, recu...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% USE dir = Directory(dir) -%]\n...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% USE dir = Directory('.', root...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% VIEW filelist -%]\n\n[% BLOCK f...
  • ok 31 - template text 14 matched expected
0.60s 100.0%
t/document.t
                                                 
  • 1..25
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11 - running test_expect()
  • ok 12 - template processor is engaged
  • ok 13 - input read and split into 6 tests
  • ok 14 - template text 1 processed OK: [% META\n author = 'Tom Smith'\n...
  • ok 15 - template text 1 matched expected
  • ok 16 - template text 2 processed OK: [% BLOCK foo -%]\n This is bloc...
  • ok 17 - template text 2 matched expected
  • ok 18 - template text 3 processed OK: [% META title = 'My Template Tit...
  • ok 19 - template text 3 matched expected
  • ok 20 - template text 4 processed OK: [% BLOCK header -%]\nHEADER\ncompo...
  • ok 21 - template text 4 matched expected
  • ok 22 - template text 5 processed OK: [% META title = 'My Template Tit...
  • ok 23 - template text 5 matched expected
  • ok 24 - template text 6 processed OK: [% INCLUDE $mydoc %]
  • ok 25 - template text 6 matched expected
0.34s 100.0%
t/dumper.t
                             
  • 1..15
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 6 tests
  • ok 4 - template text 1 processed OK: [% USE Dumper -%]\nDumper
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE Dumper -%]\n[% Dumper.dump...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE Dumper -%]\n[% Dumper.dump...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE Dumper -%]\n[% Dumper.dump...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE dumper(indent=1, pad='> '...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE dumper(Pad='>> ', Varname...
  • ok 15 - template text 6 matched expected
0.33s 100.0%
t/error.t
         
  • 1..5
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
0.30s 100.0%
t/evalperl.t
                                     
  • 1..19
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 8 tests
  • ok 4 - template text 1 processed OK: [% META \n author = 'Andy Ward...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% TRY %]\nnothing\n[% PERL %]\nWe ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: some stuff\n[% TRY %]\n[% INCLUDE ...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: some stuff\n[% TRY %]\n[% INCLUDE ...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% META author = 'Andy Wardley' ...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% META \n author = 'Andy Ward...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% BLOCK foo %]This is block foo...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% TRY %]\n [%- PERL %] die "no...
  • ok 19 - template text 8 matched expected
0.38s 100.0%
t/exception.t
                             
  • 1..15
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
0.11s 100.0%
t/factory.t
             
  • 1..7
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 2 tests
  • ok 4 - template text 1 processed OK: [% foo.bar %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% constant.pi %]
  • ok 7 - template text 2 matched expected
0.27s 100.0%
t/file.t
                                                 
  • 1..25
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 11 tests
  • ok 4 - template text 1 processed OK: [% USE f = File('/foo/bar/baz.ht...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE f = File('foo/bar/baz.htm...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE f = File('baz.html', nost...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE f = File('bar/baz.html', ...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE f = File('bar/baz.html', ...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE baz = File('foo/bar/baz.h...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE f = File('foo/bar/baz.htm...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE f = File(file) -%]\n[% f.p...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% USE f = File(file) -%]\n[% f.p...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% USE file(file) -%]\n[% file.pa...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% TRY -%]\n[% USE f = File('') -...
  • ok 25 - template text 11 matched expected
0.35s 100.0%
t/fileline.t
                     
  • 1..11
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 4 tests
  • ok 4 - template text 1 processed OK: [% place = 'World' -%]\nHello [% ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE warning -%]\nfile: [% ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE warning -%]\nfile: [% ...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TRY; \n INCLUDE chomp; \n ...
  • ok 11 - template text 4 matched expected
0.34s 100.0%
t/filter.t
                                                                                                                                                                                                                                                                                                       
  • 1..148
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 72 tests
  • ok 4 - template text 1 processed OK: [% TRY %]\n[% FILTER nonfilt %]\nb...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% TRY %]\n[% FILTER badfact %]\nb...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% TRY %]\n[% FILTER badfilt %]\nb...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TRY;\n "foo" | barfilt;\n ...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% TRY;\n "foo" | barfilt(1);...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% TRY;\n "foo" | barfilt(2);...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% TRY;\n "foo" | barfilt(3);...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% FILTER html %]\nThis is some h...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% text = "The <cat> sat on the ...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% text = "The <cat> sat on the ...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% FILTER html %]\n"It isn't what...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% FILTER format %]\nHello World!...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% FILTER comment = format('<!--...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% FILTER format %]\nHello World!...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% "Foo" FILTER test1 = format('...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% FILTER microjive %]\nThe "Hall...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% FILTER microsloth %]\nThe "Hal...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% FILTER censor('bottom' 'nippl...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% FILTER bold = format('<b>%s</...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% "foo" FILTER format("<< %s >>...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% blocktext = BLOCK %]\nThe cat ...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% global.blocktext FILTER html_...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% global.blocktext FILTER html_...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: [% global.blocktext FILTER html_...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: [% global.blocktext FILTER html_...
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: [% global.blocktext FILTER trunc...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: [% global.blocktext FILTER trunc...
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: [% 'Hello World' | truncate(8) +...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: [% "foo..." FILTER repeat(5) %]
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% FILTER truncate(21) %]\nI have...
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% FILTER truncate(25) %]\nNothin...
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: [% FILTER repeat(3) %]\nAm I repe...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% text FILTER remove(' ') +%]\n[...
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% text FILTER replace(' ', '_')...
  • ok 71 - template text 34 matched expected
  • ok 72 - template text 35 processed OK: [% text = 'The <=> operator' %]\n...
  • ok 73 - template text 35 matched expected
  • ok 74 - template text 36 processed OK: [% text = 'The <=> operator, bla...
  • ok 75 - template text 36 matched expected
  • ok 76 - template text 37 processed OK: [% | truncate(25) %]\nThe cat sat...
  • ok 77 - template text 37 matched expected
  • ok 78 - template text 38 processed OK: [% FILTER upper %]\nThe cat sat o...
  • ok 79 - template text 38 matched expected
  • ok 80 - template text 39 processed OK: [% FILTER lower %]\nThe cat sat o...
  • ok 81 - template text 39 matched expected
  • ok 82 - template text 40 processed OK: [% 'arse' | stderr %]\nstderr: [%...
  • ok 83 - template text 40 matched expected
  • ok 84 - template text 41 processed OK: [% percent = '%'\n left = "[...
  • ok 85 - template text 41 matched expected
  • ok 86 - template text 42 processed OK: [% TRY %]\n[% dir = "[\% FOREACH ...
  • ok 87 - template text 42 matched expected
  • ok 88 - template text 43 processed OK: nothing\n[% TRY;\n '$x = 10; $b...
  • ok 89 - template text 43 matched expected
  • ok 90 - template text 44 processed OK: [% TRY -%]\nbefore\n[% FILTER redi...
  • ok 91 - template text 44 matched expected
  • ok 92 - template text 45 processed OK: [% FILTER evalperl %]\n $a = 10...
  • ok 93 - template text 45 matched expected
  • ok 94 - template text 46 processed OK: [% TRY -%]\nbefore\n[% FILTER file...
  • ok 95 - template text 46 matched expected
  • ok 96 - template text 47 processed OK: [% PERL %]\n$Template::Filters::F...
  • ok 97 - template text 47 matched expected
  • ok 98 - template text 48 processed OK: [% PERL %]\n$Template::Filters::F...
  • ok 99 - template text 48 matched expected
  • ok 100 - template text 49 processed OK: [% PERL %]\n$stash->set('merlyn',...
  • ok 101 - template text 49 matched expected
  • ok 102 - template text 50 processed OK: [% PERL %]\n$stash->set('merlyn',...
  • ok 103 - template text 50 matched expected
  • ok 104 - template text 51 processed OK: [% myfilter = 'html' -%]\n[% FILT...
  • ok 105 - template text 51 matched expected
  • ok 106 - template text 52 processed OK: [% FILTER $despace -%]\nblah blah...
  • ok 107 - template text 52 matched expected
  • ok 108 - template text 53 processed OK: [% PERL %]\n$context->filter(\&ne...
  • ok 109 - template text 53 matched expected
  • ok 110 - template text 54 processed OK: [% PERL %]\n$context->define_filt...
  • ok 111 - template text 54 matched expected
  • ok 112 - template text 55 processed OK: [% FILTER another(3) -%]\nfoo bar...
  • ok 113 - template text 55 matched expected
  • ok 114 - template text 56 processed OK: [% '$stash->{ a } = 25' FILTER e...
  • ok 115 - template text 56 matched expected
  • ok 116 - template text 57 processed OK: [% '$stash->{ a } = 25' FILTER p...
  • ok 117 - template text 57 matched expected
  • ok 118 - template text 58 processed OK: [% FILTER indent -%]\nThe cat sat...
  • ok 119 - template text 58 matched expected
  • ok 120 - template text 59 processed OK: [% FILTER indent(2) -%]\nThe cat ...
  • ok 121 - template text 59 matched expected
  • ok 122 - template text 60 processed OK: [% FILTER indent('>> ') -%]\nThe ...
  • ok 123 - template text 60 matched expected
  • ok 124 - template text 61 processed OK: [% text = 'The cat sat on the ma...
  • ok 125 - template text 61 matched expected
  • ok 126 - template text 62 processed OK: <<[% FILTER trim %]\n \n ...
  • ok 127 - template text 62 matched expected
  • ok 128 - template text 63 processed OK: <<[% FILTER collapse %]\n \n ...
  • ok 129 - template text 63 matched expected
  • ok 130 - template text 64 processed OK: [% FILTER format('++%s++') %]Hel...
  • ok 131 - template text 64 matched expected
  • ok 132 - template text 65 processed OK: [% "my file.html" FILTER uri %]
  • ok 133 - template text 65 matched expected
  • ok 134 - template text 66 processed OK: [% "my<file & your>file.html" FI...
  • ok 135 - template text 66 matched expected
  • ok 136 - template text 67 processed OK: [% "foo@bar" FILTER uri %]
  • ok 137 - template text 67 matched expected
  • ok 138 - template text 68 processed OK: [% "foo@bar" FILTER url %]
  • ok 139 - template text 68 matched expected
  • ok 140 - template text 69 processed OK: [% "my<file & your>file.html" | ...
  • ok 141 - template text 69 matched expected
  • ok 142 - template text 70 processed OK: [% widetext | uri %]
  • ok 143 - template text 70 matched expected
  • ok 144 - template text 71 processed OK: [% 'foobar' | ucfirst %]
  • ok 145 - template text 71 matched expected
  • ok 146 - template text 72 processed OK: [% 'FOOBAR' | lcfirst %]
  • ok 147 - template text 72 matched expected
  • ok 148 - t/test/tmp/xyz exists
1.09s 100.0%
t/foreach.t
                                                                                                                                                                                     
  • 1..91
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 44 tests
  • ok 4 - template text 1 processed OK: [% FOREACH a = [ 1, 2, 3 ] %]\n ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: Commence countdown...\n[% FOREACH...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% FOR count = [ 1 2 3 ] %]${cou...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: people:\n[% bloke = r %]\n[% peopl...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% FOREACH name = setb %]\n[% nam...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% FOREACH name = r %]\n[% name %...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% user = 'fred' %]\n[% FOREACH u...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% name = 'Joe Random Hacker' id...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% FOREACH i = [1..4] %]\n[% i +%...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% first = 4 \n last = 8\n%]\n[%...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% list = [ 'one' 'two' 'three' ...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% "$i, " FOREACH i = [-2..2] %]
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% FOREACH i = item -%]\n - [%...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% FOREACH i = items -%]\n - [...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% FOREACH item = [ a b c d ] %]...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% items = [ d C a c b ] %]\n[% F...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% items = [ d a c b ] %]\n[% FOR...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% userlist = [ b c d a C 'Andy'...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% ulist = [ b c d a 'Andy' ] %]...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% FOREACH item = [ a b c d ] %]...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% items = [ d b c a ] %]\n[% FOR...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% list = [ a b c d ] %]\n[% i = ...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% FOREACH a = ['foo', 'bar', 'b...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: [% id = 12345\n name = 'Ori...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: [% them = [ people.1 people.2 ] ...
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: [% "$p.id($p.code): $p.name\n"\n ...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: [% "$p.id($p.code): $p.name\n"\n ...
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: [% "$p.id($p.code): $p.name\n"\n ...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: Section List:\n[% FOREACH item = ...
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% FOREACH a = [ 2..6 ] %]\nbefor...
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% count = 1; WHILE (count < 10)...
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: [% FOR count = [ 1 2 3 ] %]${cou...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% FOREACH count = [ 1 2 3 ] %]$...
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% FOR [ 1 2 3 ] %]<blip>..[% EN...
  • ok 71 - template text 34 matched expected
  • ok 72 - template text 35 processed OK: [% FOREACH [ 1 2 3 ] %]<blip>..[...
  • ok 73 - template text 35 matched expected
  • ok 74 - template text 36 processed OK: [% FOREACH outer = nested -%]\nou...
  • ok 75 - template text 36 matched expected
  • ok 76 - template text 37 processed OK: [% FOREACH n = [ 1 2 3 4 5 ] -%]...
  • ok 77 - template text 37 matched expected
  • ok 78 - template text 38 processed OK: [% FOREACH n = [ 1 2 3 4 5 ] -%]...
  • ok 79 - template text 38 matched expected
  • ok 80 - template text 39 processed OK: [% FOREACH a = [ 1, 2, 3 ] -%]\n*...
  • ok 81 - template text 39 matched expected
  • ok 82 - template text 40 processed OK: [%\n FOREACH i = [1 .. 10];\n ...
  • ok 83 - template text 40 matched expected
  • ok 84 - template text 41 processed OK: [%\n FOREACH i = [1 .. 10];\n ...
  • ok 85 - template text 41 matched expected
  • ok 86 - template text 42 processed OK: [%\n FOREACH i = [1 .. 4];\n ...
  • ok 87 - template text 42 matched expected
  • ok 88 - template text 43 processed OK: [%\n LAST FOREACH k = [ 1 .. 4...
  • ok 89 - template text 43 matched expected
  • ok 90 - template text 44 processed OK: [% FOREACH prime IN [2, 3, 5, 7,...
  • ok 91 - template text 44 matched expected
1.67s 100.0%
t/format.t
                     
  • 1..11
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 4 tests
  • ok 4 - template text 1 processed OK: [% USE format %]\n[% bold = forma...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE format('<li> %s') %]\n[% F...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE bold = format("<b>%s</b>"...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE padleft = format('%-*s')...
  • ok 11 - template text 4 matched expected
1.08s 100.0%
t/html.t
                                   
  • 1..18
  • ok 1
  • ok 2 - running test_expect()
  • ok 3 - template processor is engaged
  • ok 4 - input read and split into 7 tests
  • ok 5 - html plugin processed OK: [% USE HTML -%]\nOK
  • ok 6 - html plugin matched expected
  • ok 7 - html filter processed OK: [% FILTER html -%]\n< &amp; >\n[%-...
  • ok 8 - html filter matched expected
  • ok 9 - html entity processed OK: [% TRY; \n text =\n "Léon...
  • ok 10 - html entity matched expected
  • ok 11 - template text 4 processed OK: [% USE html; html.url('my file.h...
  • ok 12 - template text 4 matched expected
  • ok 13 - escape processed OK: [% USE HTML -%]\n[% HTML.escape("...
  • ok 14 - escape matched expected
  • ok 15 - sorted processed OK: [% USE HTML(sorted=1) -%]\n[% HTM...
  • ok 16 - sorted matched expected
  • ok 17 - attributes processed OK: [% USE HTML -%]\n[% HTML.attribut...
  • ok 18 - attributes matched expected
0.42s 100.0%
t/image.t
 
  • 1..0 # skipped: Neither Image::Info nor Image::Size installed
0.12s n/a
t/include.t
                                                                                             
  • 1..47
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 22 tests
  • ok 4 - template text 1 processed OK: [% a %]\n[% PROCESS incblock -%]\n...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE first_block %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE first_block a = 'abst...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% INCLUDE 'first_block' a = t %...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% INCLUDE 'second_block' %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% INCLUDE second_block a = r, b...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: FOO: [% INCLUDE foo +%]\nFOO: [% ...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: GOLF: [% INCLUDE $c.f.g %]\nGOLF:...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: BAZ: [% INCLUDE bar/baz %]\nBAZ: ...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: BAZ: [% INCLUDE bar/baz.txt %]\nB...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% BLOCK bamboozle -%]\nThis is b...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% a %]\n[% PROCESS incblock -%]\n...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% TRY %]\n[% INCLUDE first_block...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% metaout %]
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% TRY %]\n[% PROCESS recurse cou...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% INCLUDE nosuchfile %]
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% TRY %]\n[% PROCESS recurse cou...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% TRY;\n INCLUDE nosuchfile;\n ...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% INCLUDE src:foo %]\n[% BLOCK s...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% a = ''; b = ''; d = ''; e = 0...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% style = 'light'; your_title="...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% myhash = {\n name = 'Tom'\n...
  • ok 47 - template text 22 matched expected
1.07s 100.0%
t/iterator.t
                                                       
  • 1..28
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14 - running test_expect()
  • ok 15 - template processor is engaged
  • ok 16 - input read and split into 6 tests
  • ok 17 - template text 1 processed OK: [% items = [ 'foo' 'bar' 'baz' '...
  • ok 18 - template text 1 matched expected
  • ok 19 - template text 2 processed OK: [% items = [ 'foo' 'bar' 'baz' '...
  • ok 20 - template text 2 matched expected
  • ok 21 - template text 3 processed OK: [% items = [ 'foo' 'bar' 'baz' '...
  • ok 22 - template text 3 matched expected
  • ok 23 - template text 4 processed OK: [% items = [ 'foo' 'bar' 'baz' '...
  • ok 24 - template text 4 matched expected
  • ok 25 - template text 5 processed OK: [% USE iterator(data) %]\n[% FORE...
  • ok 26 - template text 5 matched expected
  • ok 27 - template text 6 processed OK: [% FOREACH i = [ 'foo' 'bar' 'ba...
  • ok 28 - template text 6 matched expected
0.32s 100.0%
t/leak.t
                     
  • 1..11
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 4 tests
  • ok 4 - template text 1 processed OK: [% a = holler('first'); trace %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% trace %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% clear; b = [ ]; b.0 = holler(...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% trace %]
  • ok 11 - template text 4 matched expected
0.28s 100.0%
t/list.t
                                                                                 
  • 1..41
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 19 tests
  • ok 4 - template text 1 processed OK: [% data.0 %] and [% data.1 %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% data.first %] - [% data.last ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% data.size %] [% data.max %]
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% data.join(', ') %]
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% data.reverse.join(', ') %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% data.sort.reverse.join(' - ')...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% FOREACH item = wxyz.sort('id'...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% FOREACH item = wxyz.sort('ran...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% FOREACH n = [0..6] -%]\n[% day...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% data = [ 'one', 'two', data.f...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% data = [ 90, 8, 70, 6, 1, 11,...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% ilist = [] -%]\n[% ilist.push(...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% global.ilist.pop %]
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% global.ilist.shift %]
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% global.ilist.unshift('another...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% nest.0.0 %].[% nest.0.1 %][% ...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% # define some initial data\n ...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% data.grep('r').join(', ') %]
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% data.grep('^r').join(', ') %]
  • ok 41 - template text 19 matched expected
0.35s 100.0%
t/macro.t
                                         
  • 1..21
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 9 tests
  • ok 4 - template text 1 processed OK: [% MACRO foo INCLUDE foo -%]\nfoo...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: foo: [% foo %].
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% MACRO foo(a) INCLUDE foo -%]\n...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% BLOCK mypage %]\nHeader\n[% con...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% BLOCK table %]\n<table>\n[% row...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% MACRO one BLOCK -%]\none: [% t...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% MACRO one BLOCK -%]\none: [% t...
  • ok 17 - template text 7 matched expected
  • ok 18 - number macro processed OK: [% MACRO number(n) GET n.chunk(-...
  • ok 19 - number macro matched expected
  • ok 20 - perl macro processed OK: [% MACRO triple(n) PERL %]\n m...
  • ok 21 - perl macro matched expected
0.37s 100.0%
t/object.t
                                                                                     
  • 1..43
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 20 tests
  • ok 4 - template text 1 processed OK: [% thing.a %] [% thing.a %]\n[% t...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% thing.c = thing.b -%]\n[% thin...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% thing.concat = thing.b -%]\n[%...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% thing.concat(d) = thing.b -%]...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% thing.yesterday %]\n[% thing.t...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: Yesterday, $thing.yesterday\n$thi...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% thing.belief('fish' 'chips') ...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: ${thing.belief('fish' 'chips')}\n...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% thing.tomorrow %]\n$thing.tomo...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% FOREACH [ 1 2 3 4 5 ] %]$thin...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: before[% thing._private %] mid [...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% key = '_private' -%]\n[[% thin...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% key = '.private' -%]\n[[% thin...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% string.stringify %]
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% string %]
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% "-> $string <-" %]
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% "$string" %]
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: foo $string bar
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: .[% t1.dead %].
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: .[% TRY; t1.die; CATCH; error; E...
  • ok 43 - template text 20 matched expected
0.37s 100.0%
t/output.t
                           
  • 1..14
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9 - processed
  • ok 10 - output file exists
  • ok 11 - set binmode via hashref
  • ok 12 - processed again
  • ok 13 - output file exists
  • ok 14 - set binmode via arglist
0.39s 100.0%
t/parser.t
                                                                     
  • 1..35
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9 - running test_expect()
  • ok 10 - template processor is engaged
  • ok 11 - input read and split into 12 tests
  • ok 12 - template text 1 processed OK: start $a\n[% BLOCK a %]\nthis is a...
  • ok 13 - template text 1 matched expected
  • ok 14 - template text 2 processed OK: begin\n[% this will be ignored %]...
  • ok 15 - template text 2 matched expected
  • ok 16 - template text 3 processed OK: $b does nothing: \n[* c = 'b'; 'h...
  • ok 17 - template text 3 matched expected
  • ok 18 - template text 4 processed OK: begin\n[% this will be ignored %]...
  • ok 19 - template text 4 matched expected
  • ok 20 - template text 5 processed OK: $b does something: \n<!-- c = 'b'...
  • ok 21 - template text 5 matched expected
  • ok 22 - template text 6 processed OK: start $a[% 'include' = 'hello wo...
  • ok 23 - template text 6 matched expected
  • ok 24 - template text 7 processed OK: [% sql = "\n SELECT *\n FR...
  • ok 25 - template text 7 matched expected
  • ok 26 - template text 8 processed OK: [% a = "\a\b\c\ndef" -%]\na: [% a...
  • ok 27 - template text 8 matched expected
  • ok 28 - template text 9 processed OK: [% a = "\f\o\o"\n b = "a is '$a...
  • ok 29 - template text 9 matched expected
  • ok 30 - template text 10 processed OK: [% tag = {\n a => "[\%"\n ...
  • ok 31 - template text 10 matched expected
  • ok 32 - template text 11 processed OK: =[% wintxt | replace("(\r\n){2,}...
  • ok 33 - template text 11 matched expected
  • ok 34 - template text 12 processed OK: [% nl = "\n"\n tab = "\t"\n-%]\n...
  • ok 35 - template text 12 matched expected
0.38s 100.0%
t/plugins.t
                                                                                         
  • 1..45
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 21 tests
  • ok 4 - template text 1 processed OK: [% USE Table([2, 3, 5, 7, 11, 13...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE table([17, 19, 23, 29, 31...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE t = Table([41, 43, 47, 49...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE t = table([61, 67, 71, 73...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK:
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE t = table([89, 97, 101, 1...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE Foo(2) -%]\n[% Foo.output ...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE Bar(4) -%]\n[% Bar.output ...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% USE t = table([113, 127, 131,...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% TRY -%]\n[% USE Foo(8) -%]\n[% ...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% USE bar(16) -%]\n[% bar.output...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% USE qux = baz(32) -%]\n[% qux....
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% USE wiz = cgi(64) -%]\n[% wiz....
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% USE baz = MyPlugs.Baz(128) -%...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% USE boz = MyPlugs.Baz(256) -%...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% USE mycgi = url('/cgi-bin/bar...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% USE mycgi = URL('/cgi-bin/bar...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% USE mycgi = UrL('/cgi-bin/bar...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% USE Foo(20) -%]\n[% Foo.output...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% TRY -%]\n[% USE Date() -%]\n[% ...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% USE mycgi = url('/cgi-bin/bar...
  • ok 45 - template text 21 matched expected
0.64s 100.0%
t/plusfile.t
                             
  • 1..15
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 6 tests
  • ok 4 - template text 1 processed OK: [% INCLUDE foo %]\n[% BLOCK foo; ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE foo+bar -%]\n[% BLOCK ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% PROCESS foo+bar -%]\n[% BLOCK ...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% WRAPPER edge + box + indent\n ...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% INSERT foo+bar/baz %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% file1 = 'foo'\n file2 = 'bar...
  • ok 15 - template text 6 matched expected
0.29s 100.0%
t/pod.t
 
  • 1..0 # skipped: Pod::POM not installed
0.11s n/a
t/prefix.t
                         
  • 1..13
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 5 tests
  • ok 4 - template text 1 processed OK: [% INCLUDE foo a=10 %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE src:foo a=20 %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE all:foo a=30 %]
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TRY;\n INCLUDE lib:foo a=30...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% INSERT src:foo %]
  • ok 13 - template text 5 matched expected
0.31s 100.0%
t/proc.t
             
  • 1..7
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 2 tests
  • ok 4 - template text 1 processed OK: [% USE ProcFoo -%]\n[% ProcFoo.fo...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE ProcBar -%]\n[% ProcBar.fo...
  • ok 7 - template text 2 matched expected
0.63s 100.0%
t/process.t
                     
  • 1..11
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 4 tests
  • ok 4 - template text 1 processed OK: This is the first test
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% META title = 'Test 2' -%]\nThi...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% META title = 'Test 3' -%]\nThi...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% META title = 'Test 3' -%]\nThi...
  • ok 11 - template text 4 matched expected
0.83s 100.0%
t/provider.t
                                                                                                                   
  • 1..58
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
  • ok 12
  • ok 13
  • ok 14
  • ok 15
  • ok 16 - Created template for glob test
  • ok 17 - Fetch template from file handle
  • ok 18
  • ok 19
  • ok 20
  • ok 21 - dynamic path (sub) template object created
  • ok 22 - dynamic path (obj) template object created
  • ok 23 - dynamic path (bad) template object created
  • ok 24 - running test_expect()
  • ok 25 - template processor is engaged
  • ok 26 - input read and split into 16 tests
  • ok 27 - template text 1 processed OK: [% TRY %]\n[% INCLUDE foo %]\n[% I...
  • ok 28 - template text 1 matched expected
  • ok 29 - template text 2 processed OK: [% TRY %]\n[% INCLUDE foo %]\n[% I...
  • ok 30 - template text 2 matched expected
  • ok 31 - template text 3 processed OK: [% TRY %]\n[% INSERT foo +%]\n[% I...
  • ok 32 - template text 3 matched expected
  • ok 33 - template text 4 processed OK: [% TRY %]\n[% INCLUDE $relfile %]...
  • ok 34 - template text 4 matched expected
  • ok 35 - template text 5 processed OK: [% TRY %]\n[% INCLUDE $relfile -%...
  • ok 36 - template text 5 matched expected
  • ok 37 - template text 6 processed OK: foo: [% TRY; INSERT foo; CA...
  • ok 38 - template text 6 matched expected
  • ok 39 - template text 7 processed OK: [% TRY %]\n[% INCLUDE $absfile %]...
  • ok 40 - template text 7 matched expected
  • ok 41 - template text 8 processed OK: [% TRY %]\n[% INCLUDE $absfile %]...
  • ok 42 - template text 8 matched expected
  • ok 43 - template text 9 processed OK: foo: [% TRY; INSERT foo; CA...
  • ok 44 - template text 9 matched expected
  • ok 45 - template text 10 processed OK: [% INCLUDE foobar %]
  • ok 46 - template text 10 matched expected
  • ok 47 - template text 11 processed OK: [% CALL fixfile('This is the new...
  • ok 48 - template text 11 matched expected
  • ok 49 - template text 12 processed OK: foo: [% PROCESS foo | trim +%]\nb...
  • ok 50 - template text 12 matched expected
  • ok 51 - template text 13 processed OK: foo: [% INSERT foo | trim +%]\nba...
  • ok 52 - template text 13 matched expected
  • ok 53 - template text 14 processed OK: foo: [% PROCESS foo | trim +%]\nb...
  • ok 54 - template text 14 matched expected
  • ok 55 - template text 15 processed OK: foo: [% INSERT foo | trim +%]\nba...
  • ok 56 - template text 15 matched expected
  • ok 57 - template text 16 processed OK: [% TRY; INCLUDE foo; CATCH; e; E...
  • ok 58 - template text 16 matched expected
4.94s 100.0%
t/ref.t
                             
  • 1..15
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 6 tests
  • ok 4 - template text 1 processed OK: a: [% a %]\na(5): [% a(5) %]\na(5,...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% b = \a -%]\nb: [% b %]\nb(5): [...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% c = \a(10,20) -%]\nc: [% c %]\n...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% z(\a) %]
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% f = \j.k -%]\nf: [% f %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% f = \j.m.n -%]\nf: [% f %]\nf(1...
  • ok 15 - template text 6 matched expected
0.28s 100.0%
t/service.t
                                                             
  • 1..31
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 14 tests
  • ok 4 - template text 1 processed OK: This is some text
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% INCLUDE demo %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% INCLUDE astext a = 'artifact'...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% THROW barf 'Not feeling too g...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% INCLUDE no_such_file %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% PROCESS blockdef -%]\n[% INCLU...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% INCLUDE block1 %]
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% PROCESS blockdef -%]\n[% INCLU...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% INCLUDE block1 a = 'alpha' %]
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% INCLUDE demo %]
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% INCLUDE astext a = 'artifact'...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% THROW food 'cabbages' %]
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% title = 'The Foo Page' -%]\nbe...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% title = 'The Bar Page' -%]\nbe...
  • ok 31 - template text 14 matched expected
0.74s 100.0%
t/skel.t
               
  • 1..8
  • ok 1
  • ok 2 - running test_expect()
  • ok 3 - template processor is engaged
  • ok 4 - input read and split into 2 tests
  • ok 5 - template text 1 processed OK: [% a %]
  • ok 6 - template text 1 matched expected
  • ok 7 - template text 2 processed OK: [% b %]
  • ok 8 - template text 2 matched expected
0.37s 100.0%
t/stash-xs.t
                                                                                                                                   
  • 1..66
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10 - running test_expect()
  • ok 11 - template processor is engaged
  • ok 12 - input read and split into 27 tests
  • ok 13 - template text 1 processed OK: a: [% a %]
  • ok 14 - template text 1 matched expected
  • ok 15 - template text 2 processed OK: [% TRY; a; CATCH; "ERROR: $error...
  • ok 16 - template text 2 matched expected
  • ok 17 - template text 3 processed OK: [% myitem = 'foo' -%]\n1: [% myit...
  • ok 18 - template text 3 matched expected
  • ok 19 - template text 4 processed OK: [% myitem = 'foo' -%]\n[% "* $ite...
  • ok 20 - template text 4 matched expected
  • ok 21 - template text 5 processed OK: [% myitem = 'foo' -%]\n[% myitem....
  • ok 22 - template text 5 matched expected
  • ok 23 - template text 6 processed OK: [% myitem = 'foo'\n mylist = [ ...
  • ok 24 - template text 6 matched expected
  • ok 25 - template text 7 processed OK: [% "* $item\n" FOREACH item = gl...
  • ok 26 - template text 7 matched expected
  • ok 27 - template text 8 processed OK: [% global.mylist.push('bar');\n ...
  • ok 28 - template text 8 matched expected
  • ok 29 - template text 9 processed OK: [% myhash = { msg => 'Hello Worl...
  • ok 30 - template text 9 matched expected
  • ok 31 - template text 10 processed OK: [% global.myhash.delete('things'...
  • ok 32 - template text 10 matched expected
  • ok 33 - template text 11 processed OK: [% "* $item\n" \n FOREACH item...
  • ok 34 - template text 11 matched expected
  • ok 35 - template text 12 processed OK: [% items = [ 'foo', 'bar', 'baz'...
  • ok 36 - template text 12 matched expected
  • ok 37 - template text 13 processed OK: [% items = {\n foo = 'one',\n ...
  • ok 38 - template text 13 matched expected
  • ok 39 - template text 14 processed OK: [% items = {\n foo = 'one',\n ...
  • ok 40 - template text 14 matched expected
  • ok 41 - template text 15 processed OK: [% i = 0 %]\n[%- a = [ 0, 1, 2 ] ...
  • ok 42 - template text 15 matched expected
  • ok 43 - template text 16 processed OK: [%- a = [ "alpha", "beta", "gamm...
  • ok 44 - template text 16 matched expected
  • ok 45 - template text 17 processed OK: [%- a = [ "alpha", "beta", "gamm...
  • ok 46 - template text 17 matched expected
  • ok 47 - template text 18 processed OK: [% obj.name %]
  • ok 48 - template text 18 matched expected
  • ok 49 - template text 19 processed OK: [% obj.name.list.first %]
  • ok 50 - template text 19 matched expected
  • ok 51 - template text 20 processed OK: [% obj.items.first %]
  • ok 52 - template text 20 matched expected
  • ok 53 - template text 21 processed OK: [% obj.items.1 %]
  • ok 54 - template text 21 matched expected
  • ok 55 - template text 22 processed OK: =[% size %]=
  • ok 56 - template text 22 matched expected
  • ok 57 - template text 23 processed OK: [% USE Dumper;\n TRY;\n corr...
  • ok 58 - template text 23 matched expected
  • ok 59 - template text 24 processed OK: [% hash = { }\n list = [ hash ]...
  • ok 60 - template text 24 matched expected
  • ok 61 - template text 25 processed OK: [% hashobj.hello %]
  • ok 62 - template text 25 matched expected
  • ok 63 - template text 26 processed OK: [% TRY; hashobj.goodbye; CATCH; ...
  • ok 64 - template text 26 matched expected
  • ok 65 - template text 27 processed OK: [% TRY; \n hashobj.now_is_the_...
  • ok 66 - template text 27 matched expected
0.58s 100.0%
t/stash.t
                                                                                                                       
  • 1..60
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10 - running test_expect()
  • ok 11 - template processor is engaged
  • ok 12 - input read and split into 24 tests
  • ok 13 - template text 1 processed OK: a: [% a %]
  • ok 14 - template text 1 matched expected
  • ok 15 - template text 2 processed OK: [% TRY; a; CATCH; "ERROR: $error...
  • ok 16 - template text 2 matched expected
  • ok 17 - template text 3 processed OK: [% myitem = 'foo' -%]\n1: [% myit...
  • ok 18 - template text 3 matched expected
  • ok 19 - template text 4 processed OK: [% myitem = 'foo' -%]\n[% "* $ite...
  • ok 20 - template text 4 matched expected
  • ok 21 - template text 5 processed OK: [% myitem = 'foo' -%]\n[% myitem....
  • ok 22 - template text 5 matched expected
  • ok 23 - template text 6 processed OK: [% myitem = 'foo'\n mylist = [ ...
  • ok 24 - template text 6 matched expected
  • ok 25 - template text 7 processed OK: [% "* $item\n" FOREACH item = gl...
  • ok 26 - template text 7 matched expected
  • ok 27 - template text 8 processed OK: [% global.mylist.push('bar');\n ...
  • ok 28 - template text 8 matched expected
  • ok 29 - template text 9 processed OK: [% myhash = { msg => 'Hello Worl...
  • ok 30 - template text 9 matched expected
  • ok 31 - template text 10 processed OK: [% global.myhash.delete('things'...
  • ok 32 - template text 10 matched expected
  • ok 33 - template text 11 processed OK: [% "* $item\n" \n FOREACH item...
  • ok 34 - template text 11 matched expected
  • ok 35 - template text 12 processed OK: [% items = [ 'foo', 'bar', 'baz'...
  • ok 36 - template text 12 matched expected
  • ok 37 - template text 13 processed OK: [% items = {\n foo = 'one',\n ...
  • ok 38 - template text 13 matched expected
  • ok 39 - template text 14 processed OK: [% items = {\n foo = 'one',\n ...
  • ok 40 - template text 14 matched expected
  • ok 41 - template text 15 processed OK: [% obj.name %]
  • ok 42 - template text 15 matched expected
  • ok 43 - template text 16 processed OK: [% obj.name.list.first %]
  • ok 44 - template text 16 matched expected
  • ok 45 - template text 17 processed OK: [% obj.items.first %]
  • ok 46 - template text 17 matched expected
  • ok 47 - template text 18 processed OK: [% obj.items.1 %]
  • ok 48 - template text 18 matched expected
  • ok 49 - template text 19 processed OK: [% listobj.0 %] / [% listobj.fir...
  • ok 50 - template text 19 matched expected
  • ok 51 - template text 20 processed OK: [% listobj.2 %] / [% listobj.las...
  • ok 52 - template text 20 matched expected
  • ok 53 - template text 21 processed OK: [% listobj.join(', ') %]
  • ok 54 - template text 21 matched expected
  • ok 55 - template text 22 processed OK: =[% size %]=
  • ok 56 - template text 22 matched expected
  • ok 57 - template text 23 processed OK: [% hashobj.hello %]
  • ok 58 - template text 23 matched expected
  • ok 59 - template text 24 processed OK: [% TRY; hashobj.goodbye; CATCH; ...
  • ok 60 - template text 24 matched expected
0.47s 100.0%
t/stashc.t
                                   
  • 1..18
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10 - running test_expect()
  • ok 11 - template processor is engaged
  • ok 12 - input read and split into 3 tests
  • ok 13 - template text 1 processed OK: [% numbers.join(', ') %]
  • ok 14 - template text 1 matched expected
  • ok 15 - template text 2 processed OK: [% numbers.scalar %]
  • ok 16 - template text 2 matched expected
  • ok 17 - template text 3 processed OK: [% numbers.ref %]
  • ok 18 - template text 3 matched expected
0.28s 100.0%
t/stop.t
                                 
  • 1..17
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 7 tests
  • ok 4 - template text 1 processed OK: This is some text\n[% STOP %]\nMor...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: This is some text\n[% halt %]\nMor...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: This is some text\n[% INCLUDE hal...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: This is some text\n[% INCLUDE myb...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: This is some text\n[% INCLUDE myb...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: before\n[% TRY -%]\ntrying\n[% STOP...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: This is some text\n[% STOP %]\nMor...
  • ok 17 - template text 7 matched expected
0.32s 100.0%
t/strcat.t
         
  • 1..5
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 1 tests
  • ok 4 - template text 1 processed OK: [% foo = 'the foo string'\n bar...
  • ok 5 - template text 1 matched expected
0.29s 100.0%
t/string.t
                                                                                                                                                                                             
  • 1..95
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 46 tests
  • ok 4 - template text 1 processed OK: [% USE String -%]\nstring: [[% St...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE String 'hello world' -%]\n...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE String text='hello world'...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE String -%]\nstring: [[% St...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE String 'hello world' -%]\n...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE String text='hello world'...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE String text='hello' -%]\ns...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE String text='hello' -%]\n[...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% USE String -%]\n[% hi = String...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% USE hi = String 'hello' -%]\n[...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% USE hi = String 'hello' -%]\n[...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% USE hi = String 'hello' -%]\n[...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% USE hi = String 'hello' -%]\n[...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% USE hi=String "hello world\n"...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% USE foo=String "foop" -%]\n[[%...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% USE hi=String "hello" -%]\n l...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% USE str=String('hello world')...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% USE str=String('hello world')...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% USE str=String(" \n\n\t\r h...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% USE str=String(" \n\n\t\r h...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% USE str=String("hello") -%]\n[...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% USE str=String("hello") -%]\n[...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% USE str=String('foo bar') -%]...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: [% USE str=String('Hello World')...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: [% USE String('foo') -%]\n[[% Str...
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: [% USE String('foo') -%]\n[% Stri...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: [% USE String('foo bar foo baz')...
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: [% USE String('foo bar foo baz')...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: [% USE String('foo bar foo baz')...
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% USE String('foo bar foo baz')...
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% USE String('foo bar foo baz')...
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: [% USE String('foo bar foo baz')...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% USE String('foo bar foo baz')...
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% USE String('foo bar foo baz')...
  • ok 71 - template text 34 matched expected
  • ok 72 - template text 35 processed OK: [% USE String 'foo < bar' filter...
  • ok 73 - template text 35 matched expected
  • ok 74 - template text 36 processed OK: [% USE String 'foo bar' filter='...
  • ok 75 - template text 36 matched expected
  • ok 76 - template text 37 processed OK: [% USE String 'foo bar' filters=...
  • ok 77 - template text 37 matched expected
  • ok 78 - template text 38 processed OK: [% USE String ' foo bar ' f...
  • ok 79 - template text 38 matched expected
  • ok 80 - template text 39 processed OK: [% USE String ' foo bar ' f...
  • ok 81 - template text 39 matched expected
  • ok 82 - template text 40 processed OK: [% USE String ' foo bar ' f...
  • ok 83 - template text 40 matched expected
  • ok 84 - template text 41 processed OK: [% USE String 'foo bar' filters=...
  • ok 85 - template text 41 matched expected
  • ok 86 - template text 42 processed OK: [% USE String 'foo bar' filters=...
  • ok 87 - template text 42 matched expected
  • ok 88 - template text 43 processed OK: [% USE String 'foo bar' -%]\n[% S...
  • ok 89 - template text 43 matched expected
  • ok 90 - template text 44 processed OK: [% USE String;\n a = 'HeLLo';\n ...
  • ok 91 - template text 44 matched expected
  • ok 92 - template text 45 processed OK: [% USE String('Hello World') -%]...
  • ok 93 - template text 45 matched expected
  • ok 94 - template text 46 processed OK: [% USE str = String('foo bar baz...
  • ok 95 - template text 46 matched expected
0.60s 100.0%
t/switch.t
                                                                 
  • 1..33
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 15 tests
  • ok 4 - template text 1 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: before\n[% SWITCH 'alpha' %]\nthis...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: before\n[% SWITCH a %]\nthis is ig...
  • ok 33 - template text 15 matched expected
0.34s 100.0%
t/table.t
                                         
  • 1..21
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 9 tests
  • ok 4 - template text 1 processed OK: [% USE table(alphabet, rows=5) %...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE table(alphabet, rows=5) %...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE table(alphabet, rows=3) %...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE alpha = table(alphabet, c...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE alpha = table(alphabet, r...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% USE table(alphabet, rows=5, p...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% USE table(alphabet, rows=8, o...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% USE table([1,3,5], cols=5) %]...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: >\n[% USE table(empty, rows=3) -%...
  • ok 21 - template text 9 matched expected
0.51s 100.0%
t/tags.t
                                                             
  • 1..31
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 14 tests
  • ok 4 - template text 1 processed OK: [%a%] [% a %] [% a %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: Redefining tags\n[% TAGS (+ +) %]...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% a %]\n[% TAGS (+ +) %]\n[% a %]...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TAGS default -%]\n[% a %]\n%% b...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% TAGS template -%]\n[% a %]\n%% ...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% TAGS metatext -%]\n[% a %]\n%% ...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% TAGS template1 -%]\n[% a %]\n%%...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% TAGS html -%]\n[% a %]\n%% b %%...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% TAGS asp -%]\n[% a %]\n%% b %%\n...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% TAGS php -%]\n[% a %]\n%% b %%\n...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% TAGS ignored -%]\n[% a %]\n<!--...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% TAGS ignored -%]\n<!-- also to...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% TAGS <tt: > -%]\n<tt:a=10->\na:...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% TAGS star -%]\n[* a = 10 -*]\na...
  • ok 31 - template text 14 matched expected
0.37s 100.0%
t/template.t
                     
  • 1..11
  • ok 1
  • ok 2
  • ok 3
  • ok 4
  • ok 5
  • ok 6
  • ok 7
  • ok 8
  • ok 9
  • ok 10
  • ok 11
0.32s 100.0%
t/text.t
                                                               
  • 1..32
  • ok 1
  • ok 2 - running test_expect()
  • ok 3 - template processor is engaged
  • ok 4 - input read and split into 14 tests
  • ok 5 - template text 1 processed OK: This is a text block "hello" 'he...
  • ok 6 - template text 1 matched expected
  • ok 7 - template text 2 processed OK: <table width=50%>&copy;
  • ok 8 - template text 2 matched expected
  • ok 9 - template text 3 processed OK: [% foo = 'Hello World' -%]\nstart...
  • ok 10 - template text 3 matched expected
  • ok 11 - template text 4 processed OK: pre\n[%\n-%]\nmid\n[% BLOCK foo; "Th...
  • ok 12 - template text 4 matched expected
  • ok 13 - template text 5 processed OK: This is a text block "hello" 'he...
  • ok 14 - template text 5 matched expected
  • ok 15 - template text 6 processed OK: <table width=50%>&copy;
  • ok 16 - template text 6 matched expected
  • ok 17 - template text 7 processed OK: [% foo = 'Hello World' -%]\nstart...
  • ok 18 - template text 7 matched expected
  • ok 19 - template text 8 processed OK: pre\n[%\n-%]\nmid\n[% BLOCK foo; "Th...
  • ok 20 - template text 8 matched expected
  • ok 21 - template text 9 processed OK: [% a = "C'est un test"; a %]
  • ok 22 - template text 9 matched expected
  • ok 23 - template text 10 processed OK: [% META title = "C'est un test" ...
  • ok 24 - template text 10 matched expected
  • ok 25 - template text 11 processed OK: [% META title = 'C\'est un autre...
  • ok 26 - template text 11 matched expected
  • ok 27 - template text 12 processed OK: [% META title = "C'est un \"test...
  • ok 28 - template text 12 matched expected
  • ok 29 - template text 13 processed OK: [% sfoo %]/[% sbar %]
  • ok 30 - template text 13 matched expected
  • ok 31 - template text 14 processed OK: [% s1 = "$sfoo"\n s2 = "$sbar...
  • ok 32 - template text 14 matched expected
0.37s 100.0%
t/throw.t
                         
  • 1..13
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 5 tests
  • ok 4 - template text 1 processed OK: [% me = 'I' -%]\n[% TRY -%]\n [%...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% TRY -%]\n[% THROW food 'eggs' ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% pi = 3.14\n e = 2.718 -%]\n[...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% TRY -%]\n[% THROW foo 'one' 2 ...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% TRY -%]\n[% THROW food 'eggs' ...
  • ok 13 - template text 5 matched expected
0.35s 100.0%
t/tiedhash.t
                                                                                                     
  • 1..51
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 24 tests
  • ok 4 - template text 1 processed OK: [% hash.a %]
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% hash.b %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: ready\nset:[% hash.c = 'cosmos' %...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% hash.foo.bar = 'one' -%]\n[% h...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% list.0 %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% list.first %]-[% list.last %]
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% list.push(40); list.last %]
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% list.4 = 50; list.4 %]
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% hash.a %]
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% hash.b %]
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% hash.c = 'crazy'; hash.c %]
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% DEFAULT hash.c = 'more crazy'...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% hash.wiz = 'woz' -%]\n[% hash....
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% DEFAULT hash.zero = 'nothing'...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: before: [% hash.one %]\nafter: [%...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% hash.foo = 10; hash.foo = 20;...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% DEFAULT hash.person = { };\n ...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% list.0 %]
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% list.first %]-[% list.last %]
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% list.push(60); list.last %]
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% list.5 = 70; list.5 %]
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% DEFAULT list.5 = 80; list.5 %...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% list.10 = 100; list.10 %]
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: [% stuff = [ ];\n stuff.0 = 'so...
  • ok 51 - template text 24 matched expected
0.41s 100.0%
t/try.t
                                                                                                                                 
  • 1..65
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 31 tests
  • ok 4 - template text 1 processed OK: [% TRY %]\n[% THROW foxtrot %]\n[%...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% TRY %]\n[% THROW $f %]\n[% CATC...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: before try\n[% TRY %]\ntry this\n[%...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: before\n[% TRY %]\nsome content\n[%...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% TRY %]\nfoo\n[% CATCH %]\nbar\n[%...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% TRY %]\nfoo\n[% THROW anything ...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: before\n[% TRY %]\nfoo\n[% THROW an...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: before\n[% TRY %]\nfoo\n[% CATCH %]...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: before\n[% TRY %]\nouter\n[% TRY %]...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: [% TRY %]\nbefore\n[% throw_egg %]...
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: [% TRY %]\nbefore\n[% throw_any %]...
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: [% TRY %]\n[% THROW up 'feeling s...
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: [% TRY %]\n[% THROW up 'feeling s...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: [% TRY; THROW food 'cabbage'; CA...
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% TRY; \n THROW food 'cabbage';...
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% TRY;\n PROCESS no_such_fil...
  • ok 65 - template text 31 matched expected
0.65s 100.0%
t/unicode.t
                                       
  • 1..20
  • ok 1 - first try - UTF-8
  • ok 2 - first try - UTF-16BE
  • ok 3 - first try - UTF-32BE
  • ok 4 - first try - UTF-16LE
  • ok 5 - first try - UTF-32LE
  • ok 6 - in memory - UTF-8
  • ok 7 - in memory - UTF-16BE
  • ok 8 - in memory - UTF-32BE
  • ok 9 - in memory - UTF-16LE
  • ok 10 - in memory - UTF-32LE
  • ok 11 - from cache - UTF-8
  • ok 12 - from cache - UTF-16BE
  • ok 13 - from cache - UTF-32BE
  • ok 14 - from cache - UTF-16LE
  • ok 15 - from cache - UTF-32LE
  • ok 16 - in cache, in memory - UTF-8
  • ok 17 - in cache, in memory - UTF-16BE
  • ok 18 - in cache, in memory - UTF-32BE
  • ok 19 - in cache, in memory - UTF-16LE
  • ok 20 - in cache, in memory - UTF-32LE
0.55s 100.0%
t/url.t
                                         
  • 1..21
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 9 tests
  • ok 4 - template text 1 processed OK: [% USE url -%]\nloaded\n[% url %]\n...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% USE url('here') -%]\n[% url %]...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE url('there', name='fred')...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% USE url('/cgi-bin/woz.pl') -%...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE url '/script' { one => 1,...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% url.product.view %]\n[% url.pr...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% url.product.add %]\n[% url.pro...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% url.product.edit %]\n[% url.pr...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% CALL no_escape -%]\n[% url.pro...
  • ok 21 - template text 9 matched expected
0.35s 100.0%
t/vars.t
                                                                                                                                                                                                                                                         
  • 1..125
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 61 tests
  • ok 4 - template text 1 processed OK: [[% nosuchvariable %]]\n[$nosuchv...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% a %]\n[% GET b %]\n[% get c %]
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% b %] [% GET b %]
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: $a $b ${c} ${d} [% e %]
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% letteralpha %]\n[% ${"letter$a...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% f.g %] [% f.$gee %] [% f.${ge...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% GET f.h %] [% get f.h %] [% f...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: $f.h ${f.g} ${f.h}.gif
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% f.i.j %] [% GET f.i.j %] [% g...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% f.i.j %] $f.i.k [% f.${'i'}.$...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% 'this is literal text' %]\n[% ...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% name = "$a $b $w" -%]\nName: $...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% join('--', a b, c, f.i.j) %]
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% text = 'The cat sat on the ma...
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% magic.chant %] [% GET magic.c...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: <<[% magic.spell %]>>\n[% magic.s...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: [% one %] [% one('two', 'three')...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% day.prev %]\n[% day.this %]\n[%...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: Yesterday, $day.prev\n$day.this\n$...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: [% day.next %]\n$day.next
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% FOREACH [ 1 2 3 4 5 ] %]$day....
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: before\n[% halt %]\nafter
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: [% FOREACH k = yankee -%]\n[% loo...
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: before [% CALL a %]a[% CALL b %]...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: ..[% CALL undef %]..
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: ..[% CALL zero %]..
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: ..[% n %]..[% CALL n %]..
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: ..[% up %]..[% CALL up %]..[% n ...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: [% CALL reset %][% n %]
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% CALL reset(100) %][% n %]
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% a = a %] $a\n[% a = b %] $a
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: [% SET a = a %] $a\n[% SET a = b ...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% a = b\n b = c\n c = d\n d ...
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% SET\n a = c\n b = d\n c = ...
  • ok 71 - template text 34 matched expected
  • ok 72 - template text 35 processed OK: [% 'a' = d\n 'include' = e\n '...
  • ok 73 - template text 35 matched expected
  • ok 74 - template text 36 processed OK: [% a = f.g %] $a\n[% a = f.i.j %]...
  • ok 75 - template text 36 matched expected
  • ok 76 - template text 37 processed OK: [% f.g = r %] $f.g\n[% f.i.j = s ...
  • ok 77 - template text 37 matched expected
  • ok 78 - template text 38 processed OK: [% user = {\n id = 'abw'\n n...
  • ok 79 - template text 38 matched expected
  • ok 80 - template text 39 processed OK: [% product = {\n id => 'XYZ...
  • ok 81 - template text 39 matched expected
  • ok 82 - template text 40 processed OK: [% data => {\n g => 'my dat...
  • ok 83 - template text 40 matched expected
  • ok 84 - template text 41 processed OK: [% a %]\n[% DEFAULT a = b -%]\n[% ...
  • ok 85 - template text 41 matched expected
  • ok 86 - template text 42 processed OK: [% a = '' -%]\n[% DEFAULT a = b -...
  • ok 87 - template text 42 matched expected
  • ok 88 - template text 43 processed OK: [% a = '' b = '' -%]\n[% DEFAUL...
  • ok 89 - template text 43 matched expected
  • ok 90 - template text 44 processed OK: [% global.version = '3.14' -%]\nV...
  • ok 91 - template text 44 matched expected
  • ok 92 - template text 45 processed OK: Version: [% global.version %]
  • ok 93 - template text 45 matched expected
  • ok 94 - template text 46 processed OK: [% global.newversion = global.ve...
  • ok 95 - template text 46 matched expected
  • ok 96 - template text 47 processed OK: Version: [% global.version %]\nVe...
  • ok 97 - template text 47 matched expected
  • ok 98 - template text 48 processed OK: [% hash1 = {\n foo => 'Foo',...
  • ok 99 - template text 48 matched expected
  • ok 100 - template text 49 processed OK: [% mage = { name => 'Ganda...
  • ok 101 - template text 49 matched expected
  • ok 102 - template text 50 processed OK: [[% _private %]][[% _hidden %]]
  • ok 103 - template text 50 matched expected
  • ok 104 - template text 51 processed OK: [% CALL expose -%]\n[[% _private ...
  • ok 105 - template text 51 matched expected
  • ok 106 - template text 52 processed OK: [% a = 4 -%]\n[% b=6 -%]\n[% c = a...
  • ok 107 - template text 52 matched expected
  • ok 108 - template text 53 processed OK: [% a = 1\n b = 2\n c = 3\n-%]\n[...
  • ok 109 - template text 53 matched expected
  • ok 110 - template text 54 processed OK: [% 1 || 0 && 0 # should be 1 |...
  • ok 111 - template text 54 matched expected
  • ok 112 - template text 55 processed OK: [% 1 + !0 + 1 # should be 1 + ...
  • ok 113 - template text 55 matched expected
  • ok 114 - template text 56 processed OK: [% "x" _ "y" == "y"; ',' # shou...
  • ok 115 - template text 56 matched expected
  • ok 116 - template text 57 processed OK: [% "x" _ "y" == "xy" # shou...
  • ok 117 - template text 57 matched expected
  • ok 118 - template text 58 processed OK: [% add(3, 5) %]
  • ok 119 - template text 58 matched expected
  • ok 120 - template text 59 processed OK: [% add(3 + 4, 5 + 7) %]
  • ok 121 - template text 59 matched expected
  • ok 122 - template text 60 processed OK: [% a = 10;\n b = 20;\n c = 30;...
  • ok 123 - template text 60 matched expected
  • ok 124 - template text 61 processed OK: [% a = 10;\n b = 20;\n c = 30;...
  • ok 125 - template text 61 matched expected
0.67s 100.0%
t/varsv1.t
                                                                                                                                                                                         
  • 1..93
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 45 tests
  • ok 4 - template text 1 processed OK: [% a %]\n[% $a %]\n[% GET b %]\n[% ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% b %] [% $b %] [% GET b %] [% ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: $a $b ${c} ${d} [% $e %]
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% letteralpha %]\n[% ${"letter$a...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% f.g %] [% $f.g %] [% $f.$g %]
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% GET f.h %] [% get $f.h %] [% ...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: $f.h ${f.g} ${f.h}.gif
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% f.i.j %] [% $f.i.j %] [% f.$i...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [% f.i.j %] [% $f.i.j %] [% GET ...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [% get $f.i.k %]
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [% f.i.j %] $f.i.k [% f.${'i'}.$...
  • ok 25 - template text 11 matched expected
  • ok 26 - template text 12 processed OK: [% 'this is literal text' %]\n[% ...
  • ok 27 - template text 12 matched expected
  • ok 28 - template text 13 processed OK: [% name = "$a $b $w" -%]\nName: $...
  • ok 29 - template text 13 matched expected
  • ok 30 - template text 14 processed OK: [% join('--', a b, c, f.i.j) %]
  • ok 31 - template text 14 matched expected
  • ok 32 - template text 15 processed OK: [% text = 'The cat sat on the ma...
  • ok 33 - template text 15 matched expected
  • ok 34 - template text 16 processed OK: [% magic.chant %] [% GET magic.c...
  • ok 35 - template text 16 matched expected
  • ok 36 - template text 17 processed OK: <<[% magic.spell %]>>\n[% magic.s...
  • ok 37 - template text 17 matched expected
  • ok 38 - template text 18 processed OK: [% one %] [% one('two', 'three')...
  • ok 39 - template text 18 matched expected
  • ok 40 - template text 19 processed OK: [% day.prev %]\n[% day.this %]\n[%...
  • ok 41 - template text 19 matched expected
  • ok 42 - template text 20 processed OK: Yesterday, $day.prev\n$day.this\n$...
  • ok 43 - template text 20 matched expected
  • ok 44 - template text 21 processed OK: [% day.next %]\n$day.next
  • ok 45 - template text 21 matched expected
  • ok 46 - template text 22 processed OK: [% FOREACH [ 1 2 3 4 5 ] %]$day....
  • ok 47 - template text 22 matched expected
  • ok 48 - template text 23 processed OK: before\n[% halt %]\nafter
  • ok 49 - template text 23 matched expected
  • ok 50 - template text 24 processed OK: before [% CALL a %]a[% CALL b %]...
  • ok 51 - template text 24 matched expected
  • ok 52 - template text 25 processed OK: ..[% CALL undef %]..
  • ok 53 - template text 25 matched expected
  • ok 54 - template text 26 processed OK: ..[% CALL zero %]..
  • ok 55 - template text 26 matched expected
  • ok 56 - template text 27 processed OK: ..[% n %]..[% CALL n %]..
  • ok 57 - template text 27 matched expected
  • ok 58 - template text 28 processed OK: ..[% up %]..[% CALL up %]..[% n ...
  • ok 59 - template text 28 matched expected
  • ok 60 - template text 29 processed OK: [% CALL reset %][% n %]
  • ok 61 - template text 29 matched expected
  • ok 62 - template text 30 processed OK: [% CALL reset(100) %][% n %]
  • ok 63 - template text 30 matched expected
  • ok 64 - template text 31 processed OK: [% a = a %] $a\n[% a = b %] $a\n[%...
  • ok 65 - template text 31 matched expected
  • ok 66 - template text 32 processed OK: [% SET a = a %] $a\n[% SET a = b ...
  • ok 67 - template text 32 matched expected
  • ok 68 - template text 33 processed OK: [% a = b\n b = c\n c = d\n d ...
  • ok 69 - template text 33 matched expected
  • ok 70 - template text 34 processed OK: [% SET\n a = c\n b = d\n c = ...
  • ok 71 - template text 34 matched expected
  • ok 72 - template text 35 processed OK: [% a = f.g %] $a\n[% a = $f.h %] ...
  • ok 73 - template text 35 matched expected
  • ok 74 - template text 36 processed OK: [% f.g = r %] $f.g\n[% $f.h = $r ...
  • ok 75 - template text 36 matched expected
  • ok 76 - template text 37 processed OK: [% user = {\n id = 'abw'\n n...
  • ok 77 - template text 37 matched expected
  • ok 78 - template text 38 processed OK: [% product = {\n id => 'XYZ...
  • ok 79 - template text 38 matched expected
  • ok 80 - template text 39 processed OK: [% a %]\n[% DEFAULT a = b -%]\n[% ...
  • ok 81 - template text 39 matched expected
  • ok 82 - template text 40 processed OK: [% a = '' -%]\n[% DEFAULT a = b -...
  • ok 83 - template text 40 matched expected
  • ok 84 - template text 41 processed OK: [% a = '' b = '' -%]\n[% DEFAUL...
  • ok 85 - template text 41 matched expected
  • ok 86 - template text 42 processed OK: [% global.version = '3.14' -%]\nV...
  • ok 87 - template text 42 matched expected
  • ok 88 - template text 43 processed OK: Version: [% global.version %]
  • ok 89 - template text 43 matched expected
  • ok 90 - template text 44 processed OK: [% global.newversion = global.ve...
  • ok 91 - template text 44 matched expected
  • ok 92 - template text 45 processed OK: Version: [% global.version %]\nVe...
  • ok 93 - template text 45 matched expected
0.58s 100.0%
t/view.t
                                                                                                                                                                                                                           
  • 1..110
  • ok 1
  • ok 2
  • ok 3
  • ok 4 - running test_expect()
  • ok 5 - template processor is engaged
  • ok 6 - input read and split into 52 tests
  • ok 7 - template text 1 processed OK: [% USE v = View -%]\n[[% v.prefix...
  • ok 8 - template text 1 matched expected
  • ok 9 - template text 2 processed OK: [% USE v = View( map => { defaul...
  • ok 10 - template text 2 matched expected
  • ok 11 - template text 3 processed OK: [% USE view( prefix=> 'foo/', su...
  • ok 12 - template text 3 matched expected
  • ok 13 - template text 4 processed OK: [% USE view( prefix=> 'foo/', su...
  • ok 14 - template text 4 matched expected
  • ok 15 - template text 5 processed OK: [% USE view -%]\n[% view.print('H...
  • ok 16 - template text 5 matched expected
  • ok 17 - template text 6 processed OK: [% USE view -%]\n[% view.print( {...
  • ok 18 - template text 6 matched expected
  • ok 19 - template text 7 processed OK: [% USE view -%]\n[% view = view.c...
  • ok 20 - template text 7 matched expected
  • ok 21 - template text 8 processed OK: [% USE view(prefix='my_') -%]\n[%...
  • ok 22 - template text 8 matched expected
  • ok 23 - template text 9 processed OK: [% USE view -%]\n[% view.print( v...
  • ok 24 - template text 9 matched expected
  • ok 25 - template text 10 processed OK: [% USE view(prefix='my_') -%]\n[%...
  • ok 26 - template text 10 matched expected
  • ok 27 - template text 11 processed OK: [% USE view(prefix='my_', notfou...
  • ok 28 - template text 11 matched expected
  • ok 29 - template text 12 processed OK: [% USE view(prefix => 'my_', map...
  • ok 30 - template text 12 matched expected
  • ok 31 - template text 13 processed OK: [% USE view(prefix => 'my_', map...
  • ok 32 - template text 13 matched expected
  • ok 33 - template text 14 processed OK: [% USE view(prefix='my_', defaul...
  • ok 34 - template text 14 matched expected
  • ok 35 - template text 15 processed OK: [% USE view -%]\n[% TRY ;\n vi...
  • ok 36 - template text 15 matched expected
  • ok 37 - template text 16 processed OK: [% USE view -%]\n[% view.print( f...
  • ok 38 - template text 16 matched expected
  • ok 39 - template text 17 processed OK: [% USE view -%]\n[% view.print( f...
  • ok 40 - template text 17 matched expected
  • ok 41 - template text 18 processed OK: [% USE view(prefix='my_', includ...
  • ok 42 - template text 18 matched expected
  • ok 43 - template text 19 processed OK: [% USE view(prefix='my_', includ...
  • ok 44 - template text 19 matched expected
  • ok 45 - template text 20 processed OK: [% USE view(map => { HASH => 'my...
  • ok 46 - template text 20 matched expected
  • ok 47 - template text 21 processed OK: [% USE view(item => 'thing',\n ...
  • ok 48 - template text 21 matched expected
  • ok 49 - template text 22 processed OK: [% USE view -%]\n[% view.print('H...
  • ok 50 - template text 22 matched expected
  • ok 51 - template text 23 processed OK: [% USE view( prefix = 'base_', d...
  • ok 52 - template text 23 matched expected
  • ok 53 - template text 24 processed OK: [% USE view( prefix => 'my_', it...
  • ok 54 - template text 24 matched expected
  • ok 55 - template text 25 processed OK: [% USE view -%]\n[% view.map.${'T...
  • ok 56 - template text 25 matched expected
  • ok 57 - template text 26 processed OK: [% USE view -%]\n[% view.include(...
  • ok 58 - template text 26 matched expected
  • ok 59 - template text 27 processed OK: [% USE view( prefix="my_" )-%]\n[...
  • ok 60 - template text 27 matched expected
  • ok 61 - template text 28 processed OK: [% USE view( prefix="my_" )-%]\n[...
  • ok 62 - template text 28 matched expected
  • ok 63 - template text 29 processed OK: [% USE view( prefix="my_" )-%]\n[...
  • ok 64 - template text 29 matched expected
  • ok 65 - template text 30 processed OK: [% USE view( title="My View" )-%...
  • ok 66 - template text 30 matched expected
  • ok 67 - template text 31 processed OK: [% USE view( title="My View" )-%...
  • ok 68 - template text 31 matched expected
  • ok 69 - template text 32 processed OK: [% VIEW fred prefix='blat_' %]\nT...
  • ok 70 - template text 32 matched expected
  • ok 71 - template text 33 processed OK: [% VIEW fred %]\nThis is the view...
  • ok 72 - template text 33 matched expected
  • ok 73 - template text 34 processed OK: [% VIEW fred %]\nThis is the view...
  • ok 74 - template text 34 matched expected
  • ok 75 - template text 35 processed OK: [% VIEW fred prefix='blat_'; vie...
  • ok 76 - template text 35 matched expected
  • ok 77 - template text 36 processed OK: [% VIEW foo prefix='blat_' defau...
  • ok 78 - template text 36 matched expected
  • ok 79 - template text 37 processed OK: [% VIEW foo %]\n[% BLOCK hello -%...
  • ok 80 - template text 37 matched expected
  • ok 81 - template text 38 processed OK: [% title = "Previous Title" -%]\n...
  • ok 82 - template text 38 matched expected
  • ok 83 - template text 39 processed OK: [% VIEW foo \n title = 'My Vi...
  • ok 84 - template text 39 matched expected
  • ok 85 - template text 40 processed OK: [% VIEW basic title = "My Web Si...
  • ok 86 - template text 40 matched expected
  • ok 87 - template text 41 processed OK: [% VIEW baz notfound='lost' %]\n...
  • ok 88 - template text 41 matched expected
  • ok 89 - template text 42 processed OK: [% VIEW woz prefix='outer_' %]\n...
  • ok 90 - template text 42 matched expected
  • ok 91 - template text 43 processed OK: [% VIEW foo %]\n\n [% BLOCK file...
  • ok 92 - template text 43 matched expected
  • ok 93 - template text 44 processed OK: [% BLOCK parent -%]\nThis is the ...
  • ok 94 - template text 44 matched expected
  • ok 95 - template text 45 processed OK: [% BLOCK foo -%]\npublic foo bloc...
  • ok 96 - template text 45 matched expected
  • ok 97 - template text 46 processed OK: [% VIEW foo %]\n[% BLOCK Blessed_...
  • ok 98 - template text 46 matched expected
  • ok 99 - template text 47 processed OK: [% VIEW my.foo value=33; END -%]...
  • ok 100 - template text 47 matched expected
  • ok 101 - template text 48 processed OK: [% VIEW parent -%]\n[% BLOCK one ...
  • ok 102 - template text 48 matched expected
  • ok 103 - template text 49 processed OK: [% VIEW my.view.default\n ...
  • ok 104 - template text 49 matched expected
  • ok 105 - template text 50 processed OK: [% VIEW my.view.default\n ...
  • ok 106 - template text 50 matched expected
  • ok 107 - template text 51 processed OK: [% VIEW foo number = 10 sealed =...
  • ok 108 - template text 51 matched expected
  • ok 109 - template text 52 processed OK: [% VIEW foo number = 10 silent =...
  • ok 110 - template text 52 matched expected
0.92s 100.0%
t/while.t
                                                 
  • 1..25
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 11 tests
  • ok 4 - template text 1 processed OK: before\n[% WHILE bollocks %]\ndo n...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: Commence countdown...\n[% a = 10 ...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% reset %]\n[% WHILE (item = nex...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% reset %]\n[% WHILE (item = nex...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% reset %]\n[% "* $item\n" WHILE...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% TRY %]\n[% WHILE true %].[% EN...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% reset %]\n[% WHILE (item = nex...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% \n i = 1;\n WHILE i <= 1...
  • ok 19 - template text 8 matched expected
  • ok 20 - template text 9 processed OK: [%\n i = 1;\n WHILE i <= 10;...
  • ok 21 - template text 9 matched expected
  • ok 22 - template text 10 processed OK: [%\n i = 1;\n WHILE i <= 4;\n...
  • ok 23 - template text 10 matched expected
  • ok 24 - template text 11 processed OK: [%\n k = 1;\n LAST WHILE k =...
  • ok 25 - template text 11 matched expected
0.35s 100.0%
t/wrap.t
                         
  • 1..13
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 5 tests
  • ok 4 - template text 1 processed OK: [% USE Wrap -%]\n[% text = BLOCK ...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% FILTER wrap -%]\nThis is a lon...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% USE wrap -%]\n[% FILTER wrap(2...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% FILTER wrap(10, '> ', '+ ') -...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [% USE wrap -%]\n[% FILTER bullet...
  • ok 13 - template text 5 matched expected
0.33s 100.0%
t/wrapper.t
                                     
  • 1..19
  • ok 1 - running test_expect()
  • ok 2 - template processor is engaged
  • ok 3 - input read and split into 8 tests
  • ok 4 - template text 1 processed OK: [% BLOCK mypage %]\nThis is the h...
  • ok 5 - template text 1 matched expected
  • ok 6 - template text 2 processed OK: [% WRAPPER mywrap\n title = 'An...
  • ok 7 - template text 2 matched expected
  • ok 8 - template text 3 processed OK: [% WRAPPER mywrap\n title = 'An...
  • ok 9 - template text 3 matched expected
  • ok 10 - template text 4 processed OK: [% WRAPPER page\n title = 'My I...
  • ok 11 - template text 4 matched expected
  • ok 12 - template text 5 processed OK: [%# FOREACH s = [ 'one' 'two' ];...
  • ok 13 - template text 5 matched expected
  • ok 14 - template text 6 processed OK: [% BLOCK one; title = 'Block One...
  • ok 15 - template text 6 matched expected
  • ok 16 - template text 7 processed OK: [% title = "foo" %]\n[% WRAPPER o...
  • ok 17 - template text 7 matched expected
  • ok 18 - template text 8 processed OK: [% BLOCK a; "<a>$content</a>"; E...
  • ok 19 - template text 8 matched expected
0.34s 100.0%
76 files 2388 tests, 2388 ok, 0 failed, 0 todo, 0 skipped, 0 parse errors
exit status: 0, wait status: 0
elapsed time: 50 wallclock secs ( 1.61 usr 0.86 sys + 23.01 cusr 3.44 csys = 28.92 CPU)
47.35s 100.0%