$data =~ s/([eE])\-101$/${1}-24/; # larger exponents
$result =~ s/([eE])\-102$/${1}-25/; # " "
}
+
+ $evalData = eval $data;
+ $data = ref $evalData ? $evalData : [$evalData];
push @tests, [$template, $data, $result, $comment];
}
for ($i = 1; @tests; $i++) {
($template, $data, $result, $comment) = @{shift @tests};
- $evalData = eval $data;
$w = undef;
- $x = sprintf(">$template<",
- defined @$evalData ? @$evalData : $evalData);
+ $x = sprintf(">$template<", @$data);
substr($x, -1, 0) = $w if $w;
# $x may have 3 exponent digits, not 2
my $y = $x;
>%+vd< >chr(1)< >+1<
>%#vd< >chr(1)< >1<
>%vd< >"\01\02\03"< >1.2.3<
+>%vd< >v1.2.3< >1.2.3<
+>%vd< >[version::qv("1.2.3")]< >1.2.3<
>%v.3d< >"\01\02\03"< >001.002.003<
>%0v3d< >"\01\02\03"< >001.002.003<
>%-v3d< >"\01\02\03"< >1 .2 .3 <