Skip to content

Commit

Permalink
Item14237: Fixed FeatureSetTests test
Browse files Browse the repository at this point in the history
  • Loading branch information
vrurg committed Oct 24, 2017
1 parent 65b5b6a commit 8315003
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions UnitTestContrib/test/unit/FeatureSetTests.pm
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ sub str2ver (@) {
my @v = map {
$_
? ( UNIVERSAL::isa( $_, 'version' ) ? $_ : version->declare($_) )
->normal
: undef
} @_;
return ( wantarray ? @v : ( @v > 1 ? \@v : $v[0] ) );
Expand Down Expand Up @@ -340,9 +341,9 @@ sub test_feature_data {
features_provided
FEATURE_WITH_META => [
undef, undef, undef,
-desc => $desc,
-proposal => $prop,
-doc => $doc,
-desc => $desc,
-proposal => $prop,
-documentation => $doc,
],
-namespace => 'Test::NS',
FEATURE_WITH_META => [
Expand All @@ -355,9 +356,9 @@ sub test_feature_data {

$this->assert_deep_equals(
{
-desc => $desc,
-proposal => $prop,
-doc => $doc,
-description => $desc,
-proposal => $prop,
-documentation => $doc,
},
$meta,
"Incorrect meta for FEATURE_WITH_META from the default namespace"
Expand All @@ -375,8 +376,8 @@ sub test_feature_data {

$this->assert_deep_equals(
{
-desc => $desc,
-doc => $doc,
-description => $desc,
-documentation => $doc,
},
$meta,
"Incorrect meta for FEATURE_WITH_META from Test::NS namespace"
Expand Down

0 comments on commit 8315003

Please sign in to comment.