Permalink
Browse files

Allow regexp zeroclickinfo test

  • Loading branch information...
1 parent 7140cfa commit 345ed168a3910704ac4fb4b3540a4497ffb88efc @Getty Getty committed Mar 22, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 lib/DDG/Test/Goodie.pm
View
@@ -63,6 +63,10 @@ sub import {
my $answer = undef;
( $answer ) = $words_block->request($request) if $words_block;
( $answer ) = $words_block->request($request) if $regexp_block && !$answer;
+ if (ref $zci->answer eq 'Regexp') {
+ like($answer->answer,$zci->answer,'Regexp check for '.$query);
+ $zci->{answer} = $answer->answer;
+ }
is_deeply($answer,$zci,'Testing query '.$query);
}
};

0 comments on commit 345ed16

Please sign in to comment.