Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (16 sloc) 0.534 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;
f696a6f @coke add test for literal π
coke authored
3 plan 5;
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 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
5bab36f @FROGGS eval => EVAL in S14 to S32
FROGGS authored
19 is_approx(EVAL("pi"), $PI, "pi imported by default");
ad1b86b [t] Test suite refactoring.
cosimo authored
20
0cbc065 @lizmat s/eval_dies_ok/eval-dies-ok/g
lizmat authored
21 eval-dies-ok("3 + pi()", "pi() is not a sub");
ad1b86b [t] Test suite refactoring.
cosimo authored
22
5bab36f @FROGGS eval => EVAL in S14 to S32
FROGGS authored
23 is_approx(EVAL("3 + pi"), $PI+3, "3+pi, as a bareword");
ad1b86b [t] Test suite refactoring.
cosimo authored
24
5bab36f @FROGGS eval => EVAL in S14 to S32
FROGGS authored
25 is_approx(EVAL("pi + 3"), $PI+3, "pi+3, as a bareword");
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
26
f696a6f @coke add test for literal π
coke authored
27 is_approx(π, $PI, "unicode π as a bareword");
28
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
29 # vim: ft=perl6
Something went wrong with that request. Please try again.