Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 29 lines (16 sloc) 0.497 kb
58135b3 [t/spec] changed 'use v6-alpha;' to 'use v6;'
moritz authored
1 use v6;
ad1b86b [t] Test suite refactoring.
cosimo authored
2 use Test;
fb0ba1b Moritz Lenz fudge and correct reduce.t, pi.t
moritz authored
3 plan 4;
ad1b86b [t] Test suite refactoring.
cosimo authored
4
b8d99dd [t/spec] fix more smartlinks
moritz authored
5 # L<S32::Numeric/Numeric/"Numeric provides some constants">
ad1b86b [t] Test suite refactoring.
cosimo authored
6
626a59c [rakudo] add directives to S29-num/ and convert pod to pod6
particle authored
7 =begin pod
8
ad1b86b [t] Test suite refactoring.
cosimo authored
9 =head1 DESCRIPTION
10
11 Basic tests for builtin Num::pi
12
626a59c [rakudo] add directives to S29-num/ and convert pod to pod6
particle authored
13 =end pod
14
ad1b86b [t] Test suite refactoring.
cosimo authored
15
16 # See also: L<"http://theory.cs.iitm.ernet.in/~arvindn/pi/"> :)
d9d8264 Moritz Lenz fudge/simplify tests that made rakudo die in absence of bigint libs
moritz authored
17 my $PI = 3.141592e0;
ad1b86b [t] Test suite refactoring.
cosimo authored
18
c318940 Stefan O'Rear [S32-num/pi] The specs no longer require use Num :constants
sorear authored
19 is_approx(eval("pi"), $PI, "pi imported by default");
ad1b86b [t] Test suite refactoring.
cosimo authored
20
5adcc30 Will Coleda pugs fudge
coke authored
21 #?pugs todo
3c40f3a Stefan O'Rear [S32-num/pi.t] pi() is no longer valid
sorear authored
22 eval_dies_ok("3 + pi()", "pi() is not a sub");
ad1b86b [t] Test suite refactoring.
cosimo authored
23
c318940 Stefan O'Rear [S32-num/pi] The specs no longer require use Num :constants
sorear authored
24 is_approx(eval("3 + pi"), $PI+3, "3+pi, as a bareword");
ad1b86b [t] Test suite refactoring.
cosimo authored
25
c318940 Stefan O'Rear [S32-num/pi] The specs no longer require use Num :constants
sorear authored
26 is_approx(eval("pi + 3"), $PI+3, "pi+3, as a bareword");
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
27
28 # vim: ft=perl6
Something went wrong with that request. Please try again.