summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjluehrs2 <jluehrs2@uiuc.edu>2008-01-31 16:32:21 -0500
committerjluehrs2 <jluehrs2@uiuc.edu>2008-01-31 16:32:21 -0500
commit2d1a1ce73e76d4085af9ee45d3389c36a9078f9c (patch)
tree9732a21e8574de55f9490b12516d465c73414790
parentf125e1ec13d2f7a6478d2cdffd23e0fafcdf46b0 (diff)
downloadgames-word-2d1a1ce73e76d4085af9ee45d3389c36a9078f9c.tar.gz
games-word-2d1a1ce73e76d4085af9ee45d3389c36a9078f9c.zip
update tests for the changes
-rw-r--r--t/020-random-word.t2
-rw-r--r--t/021-is-word.t4
2 files changed, 3 insertions, 3 deletions
diff --git a/t/020-random-word.t b/t/020-random-word.t
index dd18c92..d5218f5 100644
--- a/t/020-random-word.t
+++ b/t/020-random-word.t
@@ -9,7 +9,7 @@ my $word_file = '';
$word_file = '/usr/dict/words' if (-f '/usr/dict/words');
$word_file = '/usr/share/dict/words' if (-f '/usr/share/dict/words');
-throws_ok(sub { random_word }, qr/Couldn't open word list/,
+throws_ok(sub { random_word }, qr/No words in word list/,
"testing calling a function before setting a word list");
SKIP: {
diff --git a/t/021-is-word.t b/t/021-is-word.t
index 1f4bebb..ab3a8cc 100644
--- a/t/021-is-word.t
+++ b/t/021-is-word.t
@@ -9,8 +9,8 @@ my $word_file = '';
$word_file = '/usr/dict/words' if (-f '/usr/dict/words');
$word_file = '/usr/share/dict/words' if (-f '/usr/share/dict/words');
-throws_ok(sub { is_word }, qr/Couldn't open word list/,
- "testing calling a function before setting a word list");
+lives_ok(sub { is_word "blah" },
+ "testing calling a function before setting a word list");
SKIP: {
skip "Can't find a system word list", 2 if $word_file eq '';