Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 37 lines (27 sloc) 0.882 kB
c458244 fixed PROBLEMS.pod, moved t/syntax/varnames.t into S02-names_and_vari…
azawawi authored
1 use v6;
2
3 use Test;
4
37d6c93 [t/spec] tests for RT #69596, aliasing $0 into custom match objects
moritz authored
5 plan 8;
c458244 fixed PROBLEMS.pod, moved t/syntax/varnames.t into S02-names_and_vari…
azawawi authored
6
7 # L<S02/Names and Variables/special variables of Perl 5 are going away>
8
4bdf17e @coke Convert niecza faux-todo to real todo.
coke authored
9 #?niecza todo
7d87e40 [t/spec] Update/correct a test file.
jnthn authored
10 eval_dies_ok 'my $!', '$! can not be declared again';
4bdf17e @coke Convert niecza faux-todo to real todo.
coke authored
11 #?niecza todo
7d87e40 [t/spec] Update/correct a test file.
jnthn authored
12 eval_dies_ok 'my $/', 'nor can $/';
c458244 fixed PROBLEMS.pod, moved t/syntax/varnames.t into S02-names_and_vari…
azawawi authored
13
22c3529 [t/spec] Oops, fudge fail in last patch.
jnthn authored
14 #?rakudo 2 todo 'proto on variable declarations'
4bdf17e @coke Convert niecza faux-todo to real todo.
coke authored
15 #?niecza todo
7d87e40 [t/spec] Update/correct a test file.
jnthn authored
16 eval_lives_ok 'my proto $!', '$! can be declared again if proto is used though';
4bdf17e @coke Convert niecza faux-todo to real todo.
coke authored
17 #?niecza todo
7d87e40 [t/spec] Update/correct a test file.
jnthn authored
18 eval_lives_ok 'my proto $/', 'as can $/';
19
20 eval_dies_ok 'my $f!ao = "beh";', "normal varnames can't have ! in their name";
d883a68 [t/spec] varnames.t: use eval_lives_ok and eval_dies_ok
moritz authored
21 eval_dies_ok 'my $fo:o::b:ar = "bla"', "var names can't have colons in their names either";
c458244 fixed PROBLEMS.pod, moved t/syntax/varnames.t into S02-names_and_vari…
azawawi authored
22
8ebec7e @moritz fudge varnames.t for rakudo
moritz authored
23 #?rakudo skip 'binding to $/ (questionable?)'
37d6c93 [t/spec] tests for RT #69596, aliasing $0 into custom match objects
moritz authored
24 {
25 class MyMatch {
26 method postcircumfix:<[ ]>($x) {
27 "foo$x";
28 }
29 }
16e9b58 [varnames] use $/ := to avoid STD carping about P5 usage
lwall authored
30 $/ := MyMatch.new;
37d6c93 [t/spec] tests for RT #69596, aliasing $0 into custom match objects
moritz authored
31 is $0, 'foo0', 'Aliasing of $0 into $/ (1)';
32 is $4, 'foo4', 'Aliasing of $0 into $/ (2)';
33 }
34
7f29bc5 [t/spec] Add vim: lines everywhere.
kyle authored
35
36 # vim: ft=perl6
Something went wrong with that request. Please try again.