X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Fp5-CGI-Ex;a=blobdiff_plain;f=t%2F7_template_00_base.t;h=9481952e0730f39e60e6939ae8707db3e8744b74;hp=85065cf9b2982da0feac3b9cafcd475365db5730;hb=48c4840be1f154e262de2c161cb86dc5000dfe47;hpb=d710d6cd21be21c0ab2df3566c2bd61d9015cac6 diff --git a/t/7_template_00_base.t b/t/7_template_00_base.t index 85065cf..9481952 100644 --- a/t/7_template_00_base.t +++ b/t/7_template_00_base.t @@ -350,16 +350,16 @@ process_ok('[% ["a".."z"].${ 26.rand } %]' => qr/^[a-z]/) if ! $is_tt; process_ok("[% ' ' | uri %]" => '%20'); -process_ok('[% "one".as %]' => "one") if ! $is_tt; -process_ok('[% 2.as("%02d") %]' => "02") if ! $is_tt; +process_ok('[% "one".fmt %]' => "one") if ! $is_tt; +process_ok('[% 2.fmt("%02d") %]' => "02") if ! $is_tt; -process_ok('[% [1..3].as %]' => "1 2 3") if ! $is_tt; -process_ok('[% [1..3].as("%02d") %]' => '01 02 03') if ! $is_tt; -process_ok('[% [1..3].as("%s", ", ") %]' => '1, 2, 3') if ! $is_tt; +process_ok('[% [1..3].fmt %]' => "1 2 3") if ! $is_tt; +process_ok('[% [1..3].fmt("%02d") %]' => '01 02 03') if ! $is_tt; +process_ok('[% [1..3].fmt("%s", ", ") %]' => '1, 2, 3') if ! $is_tt; -process_ok('[% {a => "B", c => "D"}.as %]' => "a\tB\nc\tD") if ! $is_tt; -process_ok('[% {a => "B", c => "D"}.as("%s:%s") %]' => "a:B\nc:D") if ! $is_tt; -process_ok('[% {a => "B", c => "D"}.as("%s:%s", "; ") %]' => "a:B; c:D") if ! $is_tt; +process_ok('[% {a => "B", c => "D"}.fmt %]' => "a\tB\nc\tD") if ! $is_tt; +process_ok('[% {a => "B", c => "D"}.fmt("%s:%s") %]' => "a:B\nc:D") if ! $is_tt; +process_ok('[% {a => "B", c => "D"}.fmt("%s:%s", "; ") %]' => "a:B; c:D") if ! $is_tt; ###----------------------------------------------------------------### ### virtual objects