Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed problem with -l/--locate, added test for it
- Loading branch information
Showing
4 changed files
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
use strict; | ||
use warnings; | ||
use File::Spec::Functions 'catfile'; | ||
use Test::More tests => 2; | ||
|
||
my $script = catfile('script', 'grok'); | ||
my $locate_short = qx/$^X $script -l s02/; | ||
my $locate_long = qx/$^X $script --locate s02/; | ||
|
||
like($locate_short, qr/S02-bits\.pod$/m, 'Found location of Synopsis 2 (-l)'); | ||
like($locate_long, qr/S02-bits\.pod$/m, 'Found location of Synopsis 2 (--locate)'); |