zeroclickinfo-goodies/t/Regexp.t

25 lines
438 B
Perl

#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => 'regexp';
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::Regexp )],
'regexp /(hello\s)/ hello probably' => test_zci(
"hello ",
heading => 'Regexp Result',
),
'regexp /(dd)/ ddg' => test_zci(
"dd",
heading => 'Regexp Result',
),
);
done_testing;