Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Test for round issue on MoarVM (issue 157).
  • Loading branch information
jnthn committed Nov 21, 2014
1 parent cc95f52 commit fe21439
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions S32-num/rounders.t
@@ -1,6 +1,6 @@
use v6;
use Test;
plan 128;
plan 130;

# L<S32::Numeric/Real/"=item round">
# L<S32::Numeric/Real/"=item floor">
Expand Down Expand Up @@ -55,7 +55,7 @@ my %tests =
round => [ [ 1.5, 2 ], [ 2, 2 ], [ 1.4999, 1 ],
[ -0.1, 0 ], [ -1, -1 ], [ -5.9, -6 ],
[ -0.5, 0 ], [ "-0.499.Num", 0 ], [ "-5.499.Num", -5 ],
[ "2.Num", 2 ] ],
[ "2.Num", 2 ], [ 5e+33, 4999999999999999727876154935214080 ] ],
truncate => [ [ 1.5, 1 ], [ 2, 2 ], [ 1.4999, 1 ],
[ -0.1, 0 ], [ -1, -1 ], [ -5.9, -5 ],
[ -0.5, 0 ], [ "-0.499.Num", 0 ], [ "-5.499.Num", -5 ],
Expand Down

0 comments on commit fe21439

Please sign in to comment.