-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build results of 213e5f7 (on master)
- Loading branch information
1 parent
336f6e6
commit 9365d06
Showing
6 changed files
with
53 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
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 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,45 @@ | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
use Test::Fatal qw( exception ); | ||
|
||
# ABSTRACT: Make sure we have a working CHI | ||
use CHI; | ||
|
||
is( | ||
exception { | ||
CHI->new( | ||
driver => 'Memory', | ||
global => 0 | ||
); | ||
}, | ||
undef, | ||
"global => 0 is ok" | ||
); | ||
|
||
is( | ||
exception { | ||
CHI->new( | ||
driver => 'Memory', | ||
global => 1 | ||
); | ||
}, | ||
undef, | ||
"global => 1 is ok" | ||
); | ||
|
||
is( | ||
exception { | ||
CHI->new( | ||
driver => 'Memory', | ||
datastore => {}, | ||
); | ||
}, | ||
undef, | ||
"datastore => {} is ok" | ||
); | ||
|
||
done_testing; | ||
|