diff options
Diffstat (limited to 't/001-basic.t')
-rw-r--r-- | t/001-basic.t | 15 |
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"; |