Skip to content

Commit 18c3485

Browse files
committed
tests for RT #77056 and #76280
1 parent bb44b6c commit 18c3485

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

S02-names/symbolic-deref.t

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use v6;
22

33
use Test;
44

5-
plan 34;
5+
plan 35;
66

77
# See L<http://www.nntp.perl.org/group/perl.perl6.language/22858> --
88
# previously, "my $a; say $::("a")" died (you had to s/my/our/). Now, it was
@@ -164,4 +164,6 @@ my $outer = 'outside';
164164
is $::("symderef_test_var"), 42, "symbolic dereferentiation works with package vars";
165165
}
166166

167+
eval_dies_ok ' ::().Str ', 'Cannot look up empty name';
168+
167169
# vim: ft=perl6

S05-metasyntax/charset.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ ok ~$! ~~ / 'Unsupported use of - as character range; in Perl 6 please use ..'/,
7373
"STD error message for - as character range";
7474
}
7575

76+
#?rakudo todo 'RT 100650'
7677
ok 'ab' ~~ /^(.*) b/,
7778
'Quantifiers in capture groups work (RT 100650)';
7879

S06-other/main-usage.t

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
plan 13;
4+
plan 14;
55

66
BEGIN { @*INC.push: 't/spec/packages' }
77

@@ -106,3 +106,10 @@ is_run 'sub MAIN($a, Bool :$var) { say "a: $a, optional: $var"; }',
106106
},
107107
:args['param', '--var'],
108108
'Bool option last with no value';
109+
110+
is_run 'sub MAIN( $a = nosuchsub()) { }; sub USAGE { say 42 }',
111+
{
112+
out => '',
113+
err => /nosuchsub/,
114+
},
115+
'if the MAIN dispatch results in an error, that error should be printed, not USAGE';

0 commit comments

Comments
 (0)