| 1 |
#!/usr/bin/perl -w |
| 2 |
use strict; |
| 3 |
use Test::More; |
| 4 |
use Finance::Quote::Currencies; |
| 5 |
|
| 6 |
if (not $ENV{ONLINE_TEST}) { |
| 7 |
plan skip_all => 'Set $ENV{ONLINE_TEST} to run this test'; |
| 8 |
} |
| 9 |
|
| 10 |
plan tests => 1; |
| 11 |
|
| 12 |
my $known_currencies |
| 13 |
= eval { Finance::Quote::Currencies::known_currencies() }; |
| 14 |
my $live_currencies |
| 15 |
= eval { Finance::Quote::Currencies::fetch_live_currencies() }; |
| 16 |
|
| 17 |
is_deeply( $known_currencies |
| 18 |
, $live_currencies |
| 19 |
, "Stored currency list is up to date with live currency list" |
| 20 |
); |