Skip to content

Commit

Permalink
Added basic test for no arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
manwar committed Oct 28, 2019
1 parent 6d39a79 commit b8d7117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/get_currencies_for_country.t
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,8 @@ is_deeply(get_currencies_for_country('us'), ['usd'], 'Test USA');
is_deeply(get_currencies_for_country('cu'), ['cuc', 'cup'], 'Test Cuba');
is_deeply(get_currencies_for_country('lt'), ['eur'], 'Test Lithuania');

throws_ok {
get_currencies_for_country();
} qr/no arguments/, "get_currencies_for_country() throws exception";

done_testing();

0 comments on commit b8d7117

Please sign in to comment.