X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=t%2F7_template_00_base.t;fp=t%2F7_template_00_base.t;h=85065cf9b2982da0feac3b9cafcd475365db5730;hb=d2b7c937e86e6e8c4b4193e9f4a8da075919b4fd;hp=48472ddc3625244cc0f545c9a1ef555713905a9d;hpb=3fe8e76eb82e9d74f656674c5ba913950e166ab1;p=chaz%2Fp5-CGI-Ex diff --git a/t/7_template_00_base.t b/t/7_template_00_base.t index 48472dd..85065cf 100644 --- a/t/7_template_00_base.t +++ b/t/7_template_00_base.t @@ -306,7 +306,7 @@ process_ok("[% 123.2.length %]" => 5) if ! $is_tt; process_ok("[% -123.2.length %]" => -5) if ! $is_tt; # the - doesn't bind as tight as the dot methods process_ok("[% (-123.2).length %]" => 6) if ! $is_tt; process_ok("[% a = 23; a.0 %]" => 23) if ! $is_tt; # '0' is a scalar_op -process_ok('[% 1.rand %]' => qr/^0\.\d+$/) if ! $is_tt; +process_ok('[% 1.rand %]' => qr/^0\.\d+(?:e-?\d+)?$/) if ! $is_tt; process_ok("[% n.repeat %]" => '1', {n => 1}) if ! $is_tt; # tt2 virtual method defaults to 0 process_ok("[% n.repeat(0) %]" => '', {n => 1});