forked from duckduckgo/zeroclickinfo-goodies
/
CurrencyIn.t
20 lines (16 loc) · 811 Bytes
/
CurrencyIn.t
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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;