summaryrefslogtreecommitdiffstats
path: root/t/001-basic.t
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-02-01 01:32:52 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-02-01 01:32:52 -0500
commitc7d6a6698132f9cab275ebae35979431e3556521 (patch)
treeb9002b49c7a0fb3796553a2c8f11ca60e7c99eb5 /t/001-basic.t
parent752338be7644da462041deea124252c006c68248 (diff)
downloadgames-word-c7d6a6698132f9cab275ebae35979431e3556521.tar.gz
games-word-c7d6a6698132f9cab275ebae35979431e3556521.zip
add and fix some tests
Diffstat (limited to 't/001-basic.t')
-rw-r--r--t/001-basic.t15
1 files changed, 4 insertions, 11 deletions
diff --git a/t/001-basic.t b/t/001-basic.t
index cf5c216..e325ff3 100644
--- a/t/001-basic.t
+++ b/t/001-basic.t
@@ -5,14 +5,7 @@ use Test::More tests => 2;
use Test::Exception;
use Games::Word::Wordlist;
-my $word_file = '';
-$word_file = '/usr/dict/words' if -r '/usr/dict/words';
-$word_file = '/usr/share/dict/words' if -r '/usr/share/dict/words';
-
-SKIP: {
- skip "Can't find a system wordlist", 2 unless $word_file;
- my $wl;
- lives_ok { $wl = Games::Word::Wordlist->new($word_file) }
- "creating a wordlist succeeds";
- isa_ok $wl, "Games::Word::Wordlist";
-}
+my $wl;
+lives_ok { $wl = Games::Word::Wordlist->new([]) }
+ "creating a wordlist succeeds";
+isa_ok $wl, "Games::Word::Wordlist";