Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Auto-generated USAGE handles sigilles parameters
  • Loading branch information
kalkin committed Mar 4, 2016
1 parent eb2b08e commit 39d9936
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S06-other/main-usage.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 27;
plan 28;

use lib 't/spec/packages';

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

is_run 'sub MAIN(\bar) { }',
{
err => /<< bar >>/,
},
'auto-generated USAGE should handle sigilles parameters';

is_run 'sub MAIN($bar) { }',
{
out => /<< bar >>/,
Expand Down

0 comments on commit 39d9936

Please sign in to comment.