Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 31 lines (17 sloc) 0.638 kb
58135b30 »
2008-05-08 [t/spec] changed 'use v6-alpha;' to 'use v6;'
1 use v6;
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
2 use Test;
3 plan 6;
4
b8d99dd7 »
2010-03-15 [t/spec] fix more smartlinks
5 # L<S32::Numeric/Numeric/"Numeric provides some constants">
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
6
626a59c1 »
2008-01-27 [rakudo] add directives to S29-num/ and convert pod to pod6
7 =begin pod
8
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
9 =head1 DESCRIPTION
10
11 Basic tests for builtin Num::pi
12
626a59c1 »
2008-01-27 [rakudo] add directives to S29-num/ and convert pod to pod6
13 =end pod
14
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
15
16 # See also: L<"http://theory.cs.iitm.ernet.in/~arvindn/pi/"> :)
4b3126f9 »
2009-11-15 [t/spec] make pi a Num instead of Rat
17 my $PI = 3.14159265358979323846264338327950288419716939937510e0;
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
18
e72635e1 »
2010-02-14 [t/spec] Note that tests being skipped are out of sync with the spec.
19 #?rakudo 6 skip 'module Num not implemented (and the spec has changed)'
12c77e76 »
2008-07-02 [gsoc_spectest] fixed syntax error in pi.t and added more general TASKS
20 is_approx(Num::pi, $PI, "Num::pi");
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
21
c3189409 »
2011-05-31 [S32-num/pi] The specs no longer require use Num :constants
22 is_approx(eval("pi"), $PI, "pi imported by default");
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
23
3c40f3ac »
2011-06-06 [S32-num/pi.t] pi() is no longer valid
24 eval_dies_ok("3 + pi()", "pi() is not a sub");
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
25
c3189409 »
2011-05-31 [S32-num/pi] The specs no longer require use Num :constants
26 is_approx(eval("3 + pi"), $PI+3, "3+pi, as a bareword");
ad1b86bb »
2008-01-24 [t] Test suite refactoring.
27
c3189409 »
2011-05-31 [S32-num/pi] The specs no longer require use Num :constants
28 is_approx(eval("pi + 3"), $PI+3, "pi+3, as a bareword");
7f29bc53 »
2009-08-08 [t/spec] Add vim: lines everywhere.
29
30 # vim: ft=perl6
Something went wrong with that request. Please try again.