Skip to content

Commit

Permalink
APItest/t/locale.t: Add detail to test names
Browse files Browse the repository at this point in the history
This detail can help in interpreting the results.
  • Loading branch information
khwilliamson committed Feb 26, 2018
1 parent a34edee commit 9fa1876
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ext/XS-APItest/t/locale.t
Expand Up @@ -131,14 +131,15 @@ SKIP: {
if (exists $correct_C_responses{$formal_item}) {
my $item = eval $items{$formal_item};
skip "This platform apparently doesn't support $formal_item", 1 if $@;
my $result = test_Perl_langinfo($item);
if (defined $correct_C_responses{$formal_item}) {
is (test_Perl_langinfo($item),
is ($result,
$correct_C_responses{$formal_item},
"Returns expected value for $formal_item");
"Returns expected value ('$result') for $formal_item");
}
else {
ok (defined test_Perl_langinfo($item),
"Returns a value for $formal_item");
ok (defined $result,
"Returns a value (in this case '$result') for $formal_item");
}
}
}
Expand Down

0 comments on commit 9fa1876

Please sign in to comment.