Permalink
Browse files

[S32-num/pi] The specs no longer require use Num :constants

  • Loading branch information...
1 parent 1c7477c commit c3189409a0bcbc474a58db53767d01711d7e4c8a @sorear sorear committed Jun 1, 2011
Showing with 5 additions and 10 deletions.
  1. +5 −10 S32-num/pi.t
View
@@ -19,19 +19,14 @@ my $PI = 3.14159265358979323846264338327950288419716939937510e0;
#?rakudo 6 skip 'module Num not implemented (and the spec has changed)'
is_approx(Num::pi, $PI, "Num::pi");
-is_approx(eval("use Num :constants; pi"), $PI,
- "pi imported by use Num :constants");
+is_approx(eval("pi"), $PI, "pi imported by default");
-is_approx(eval("use Num :constants; 3 + pi()"), $PI+3, "
- 3+pi(), as a sub");
+is_approx(eval("3 + pi()"), $PI+3, "3+pi(), as a sub");
-is_approx(eval("use Num :constants; pi() + 3"), $PI+3,
- "pi()+3, as a sub");
+is_approx(eval("pi() + 3"), $PI+3, "pi()+3, as a sub");
-is_approx(eval("use Num :constants; 3 + pi"), $PI+3,
- "3+pi, as a bareword");
+is_approx(eval("3 + pi"), $PI+3, "3+pi, as a bareword");
-is_approx(eval("use Num :constants; pi + 3"), $PI+3,
- "pi+3, as a bareword");
+is_approx(eval("pi + 3"), $PI+3, "pi+3, as a bareword");
# vim: ft=perl6

0 comments on commit c318940

Please sign in to comment.