Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: MANIFEST lib/Acme/MetaSyntactic.pm lib/Acme/MetaSyntactic/pause_id.pm lib/Test/MetaSyntactic.pm
- Loading branch information
Showing
51 changed files
with
352 additions
and
279 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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,15 +1,18 @@ | ||
use Test::More tests => 3; | ||
use Acme::MetaSyntactic; | ||
use File::Spec::Functions; | ||
my $dir; | ||
BEGIN { $dir = catdir qw( t lib ); } | ||
|
||
my $meta = Acme::MetaSyntactic->new( 'coverhack' ); | ||
my $meta = Acme::MetaSyntactic->new( 'test_ams_cover' ); | ||
eval { my $name = $meta->name; }; | ||
like( $@, qr!^Metasyntactic list coverhack does not exist!, "So there!" ); | ||
like( $@, qr!^Metasyntactic list test_ams_cover does not exist!, "So there!" ); | ||
|
||
$meta = Acme::MetaSyntactic->new(); | ||
eval { $meta->name( digits => 2 ); }; | ||
like( $@, qr!^Metasyntactic list digits does not exist!, "AMS::digits not there yet" ); | ||
eval { $meta->name( test_ams_list => 2 ); }; | ||
like( $@, qr!^Metasyntactic list test_ams_list does not exist!, "AMS::test_ams_list not there yet" ); | ||
|
||
push @INC, 't'; | ||
eval { $meta->name( digits => 2 ); }; | ||
is( $@, '', 'AMS::digits in @INC now' ); | ||
push @INC, $dir; | ||
eval { $meta->name( test_ams_list => 2 ); }; | ||
is( $@, '', 'AMS::test_ams_list in @INC now' ); | ||
|
Oops, something went wrong.