Skip to content

Commit 3a1ef78

Browse files
committed
Merge pull request #107 from kalkin/usage-sigilles
Auto-generated USAGE handles sigilles parameters
2 parents eb2b08e + 39d9936 commit 3a1ef78

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

S06-other/main-usage.t

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

4-
plan 27;
4+
plan 28;
55

66
use lib 't/spec/packages';
77

@@ -37,6 +37,12 @@ is_run 'sub MAIN($foo) { }',
3737
},
3838
'auto-generated USAGE message goes to $*ERR and contains parameter name';
3939

40+
is_run 'sub MAIN(\bar) { }',
41+
{
42+
err => /<< bar >>/,
43+
},
44+
'auto-generated USAGE should handle sigilles parameters';
45+
4046
is_run 'sub MAIN($bar) { }',
4147
{
4248
out => /<< bar >>/,

0 commit comments

Comments
 (0)