24 lines
830 B
Perl
24 lines
830 B
Perl
|
#!/usr/bin/env perl
|
||
|
|
||
|
use strict;
|
||
|
use warnings;
|
||
|
use Test::More;
|
||
|
use DDG::Test::Goodie;
|
||
|
|
||
|
zci answer_type => "paleo_ingredient_check";
|
||
|
zci is_cached => 1;
|
||
|
|
||
|
ddg_goodie_test(
|
||
|
[qw( DDG::Goodie::PaleoIngredientCheck )],
|
||
|
'are apples paleo friendly' => test_zci('Apples are allowed on the paleo diet.'),
|
||
|
'Is dairy allowed on the paleo diet?' => test_zci('Dairy is not allowed on the paleo diet.'),
|
||
|
'Is sugar paleo friendly?' => test_zci('Sugar is not allowed on the paleo diet.'),
|
||
|
'beans paleo safe' => test_zci('Beans are not allowed on the paleo diet.'),
|
||
|
'is sugar paleo' => test_zci('Sugar is not allowed on the paleo diet.'),
|
||
|
'Is foobar allowed on the paleo diet?' => undef,
|
||
|
'are notarealfood paleo friendly' => undef,
|
||
|
'paleo diet recipes' => undef,
|
||
|
'paleo recipes' => undef,
|
||
|
);
|
||
|
|
||
|
done_testing;
|