Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix main-usage tests
The order of arguments to is_run look wrong here.
  • Loading branch information
retupmoca committed Apr 11, 2014
1 parent e7d8def commit c8a5683
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions S06-other/main-usage.t
Expand Up @@ -154,17 +154,18 @@ multi MAIN() { print 2 }',

# RT #92986
is_run 'multi MAIN($) { print q[Any] }; multi MAIN(Str) { print q[Str] }',
:args['foo'],
{
out => 'Str',
},
:args['foo'],
'best multi matches (not just first one)';

is_run 'sub MAIN() { print 42 }', :args['--foo'],
is_run 'sub MAIN() { print 42 }',
{
out => '',
err => rx:i/usage/,
},
:args['--foo'],
'superfluous options trigger usage message';

# RT #115744
Expand Down

0 comments on commit c8a5683

Please sign in to comment.