21 lines
811 B
Perl
21 lines
811 B
Perl
#!/usr/bin/env perl
|
|
|
|
use strict;
|
|
use warnings;
|
|
use Test::More;
|
|
use DDG::Test::Goodie;
|
|
|
|
zci answer_type => 'currency_in';
|
|
zci is_cached => 1;
|
|
|
|
ddg_goodie_test(
|
|
[qw(
|
|
DDG::Goodie::CurrencyIn
|
|
)],
|
|
'currency in australia' => test_zci('The currency in Australia is the Australian dollar (AUD)', html => 'The currency in Australia is the Australian dollar (AUD)'),
|
|
'currency in AU' => test_zci('The currency in Australia is the Australian dollar (AUD)', html => 'The currency in Australia is the Australian dollar (AUD)'),
|
|
'currency In Alderney' => test_zci("Currencies in Alderney are: \nAlderney pound\nBritish pound (GBP)\nGuernsey pound", html => "Currencies in Alderney are: <br/>Alderney pound<br/>British pound (GBP)<br/>Guernsey pound")
|
|
);
|
|
|
|
done_testing;
|