Commit 97b324b0 authored by Stefan Schantl's avatar Stefan Schantl Committed by Michael Tremer

perl: Add test for get_continent_code() function.

Signed-off-by: default avatarStefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 68afc84b
......@@ -12,7 +12,7 @@ use warnings;
my $testdb = $ENV{'database'};
my $keyfile = $ENV{'keyfile'};
use Test::More tests => 11;
use Test::More tests => 12;
BEGIN { use_ok('Location') };
#########################
......@@ -68,3 +68,6 @@ ok($network_flag_anycast, "Network has Anycast flag.");
my $country_name = &Location::get_country_name($db, "DE");
ok($country_name eq "Germany", "Test 13 - Got country name: $country_name");
my $continent_code = &Location::get_continent_code($db, "DE");
ok($continent_code eq "EU", "Test 14 - Got continent code $continent_code for country code 'DE'");
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment