forked from gitpan/Text-MacroScript
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix #4: undefine_all() should carp if no option is given
- Loading branch information
1 parent
fa4f332
commit 9acf90d
Showing
1 changed file
with
20 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/perl | ||
|
||
# Copyright (c) 2015 Paulo Custodio. All Rights Reserved. | ||
# May be used/distributed under the GPL. | ||
|
||
use strict; | ||
use warnings; | ||
use Test::More; | ||
|
||
my $ms; | ||
use_ok 'Text::MacroScript'; | ||
require_ok 't/mytests.pl'; | ||
|
||
$ms = new_ok('Text::MacroScript'); | ||
eval {$ms->undefine_all()}; | ||
check_error(__LINE__-1, $@, " method not supported __LOC__.\n"); | ||
eval {$ms->undefine_all(-xxx)}; | ||
check_error(__LINE__-1, $@, "-xxx method not supported __LOC__.\n"); | ||
|
||
done_testing; |