Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
start to fudge cool-num.t for rakudo
  • Loading branch information
moritz committed Aug 22, 2011
1 parent 813188e commit 398993f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions S32-num/cool-num.t
Expand Up @@ -61,6 +61,7 @@ is_approx NotComplex.new.sqrt, $magic.sqrt, 'NotComplex.new.sqrt == $magic.sqrt'
is_approx "17"i, 17i, '"17"i == 17i';
is_approx (NotComplex.new)i, $magic\i, '(NotComplex.new)i == $magic\i';

#?rakudo 4 skip 'angle conversion'
is_approx "17".to-radians(Degrees), 17.to-radians(Degrees),
'"17".to-radians(Degrees) == 17.to-radians(Degrees)';
is_approx NotComplex.new.to-radians(Gradians), $magic.to-radians(Gradians),
Expand All @@ -73,6 +74,7 @@ is_approx NotComplex.new.from-radians(Gradians), $magic.from-radians(Gradians),

is_approx "17.25".floor, 17.25.floor, '"17.25".floar == 17.25.floor';
is_approx "17.25".ceiling, 17.25.ceiling, '"17.25".floar == 17.25.ceiling';
#?rakudo 2 skip 'round'
is_approx "17.25".round, 17.25.round, '"17.25".floar == 17.25.round';
is_approx "17.25".round("0.1"), 17.25.round(0.1), '"17.25".floar("0.1") == 17.25.round(0.1)';
is_approx "17.25".truncate, 17.25.truncate, '"17.25".floar == 17.25.truncate';
Expand Down

0 comments on commit 398993f

Please sign in to comment.