Skip to content

Commit

Permalink
[v6.d REVIEW] Loosen hidden-from-USAGE test
Browse files Browse the repository at this point in the history
So it doesn't spec exact generated usage message

Orig: 8da39b89e
  • Loading branch information
zoffixznet committed Oct 15, 2018
1 parent 6414bc2 commit dd175d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions S06-other/main-refactored.t
Expand Up @@ -279,13 +279,13 @@ for @named-anywhere-ok -> \args, @expected, %expected {
# --- Other tests---------------------------------------------------------------
{
multi MAIN("NEVER MATCHES") { }
multi MAIN("HIDDEN") is hidden-from-USAGE { }
multi MAIN("THE-HIDDEN-MULTI") is hidden-from-USAGE { }
@*ARGS = ();
RUN-MAIN(&MAIN,Nil);

sub USAGE() {
is $*USAGE, "Usage:\n $*PROGRAM 'NEVER MATCHES'",
'was the second MAIN skipped in USAGE';
unlike $*USAGE, /'THE-HIDDEN-MULTI'/,
'was the second MAIN skipped in USAGE';
}
}

Expand Down

0 comments on commit dd175d3

Please sign in to comment.