diff options
Diffstat (limited to 't')
-rw-r--r-- | t/template.t | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/t/template.t b/t/template.t index 1763a7f12..91e4ccc84 100644 --- a/t/template.t +++ b/t/template.t @@ -30,4 +30,10 @@ $tt->process(\'H: [% s.split(":").join(",") %]', { }, \$output); is $output, 'H: 1,sp<i>l</i>it,3'; +$output = ''; +$tt->process(\'[% size %] [% 100 / size %] [% size / 100 %]', { + size => 4 +}, \$output); +is $output, '4 25 0.04'; + done_testing; |