Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit c3189409a0bcbc474a58db53767d01711d7e4c8a 1 parent 1c7477c
sorear authored May 31, 2011

Showing 1 changed file with 5 additions and 10 deletions. Show diff stats Hide diff stats

  1. 15  S32-num/pi.t
15  S32-num/pi.t
@@ -19,19 +19,14 @@ my $PI = 3.14159265358979323846264338327950288419716939937510e0;
19 19
 #?rakudo 6 skip 'module Num not implemented (and the spec has changed)'
20 20
 is_approx(Num::pi, $PI, "Num::pi");
21 21
 
22  
-is_approx(eval("use Num :constants; pi"), $PI, 
23  
-                        "pi imported by use Num :constants");  
  22
+is_approx(eval("pi"), $PI, "pi imported by default");
24 23
 
25  
-is_approx(eval("use Num :constants; 3 + pi()"), $PI+3, "
26  
-                        3+pi(), as a sub");
  24
+is_approx(eval("3 + pi()"), $PI+3, "3+pi(), as a sub");
27 25
 
28  
-is_approx(eval("use Num :constants; pi() + 3"), $PI+3,
29  
-                        "pi()+3, as a sub");
  26
+is_approx(eval("pi() + 3"), $PI+3, "pi()+3, as a sub");
30 27
 
31  
-is_approx(eval("use Num :constants; 3 + pi"),   $PI+3, 
32  
-                        "3+pi, as a bareword");
  28
+is_approx(eval("3 + pi"), $PI+3, "3+pi, as a bareword");
33 29
 
34  
-is_approx(eval("use Num :constants; pi + 3"),   $PI+3, 
35  
-                        "pi+3, as a bareword");
  30
+is_approx(eval("pi + 3"), $PI+3, "pi+3, as a bareword");
36 31
 
37 32
 # vim: ft=perl6

0 notes on commit c318940

Please sign in to comment.
Something went wrong with that request. Please try again.