Browse Source

test: Rename parse_option to parse_features

Missed in commit dad593660d922abce634542b43e9d56b03228a8c.
Guillem Jover 7 years ago
parent
commit
cccf56a596
1 changed files with 4 additions and 4 deletions
  1. 4 4
      scripts/t/Dpkg_BuildOptions.t

+ 4 - 4
scripts/t/Dpkg_BuildOptions.t

@@ -84,26 +84,26 @@ $dbo = Dpkg::BuildOptions->new();
 
 $theme_ref{$_} = 1 foreach keys %theme;
 $dbo->set('theme', '+all');
-$dbo->parse_option('theme', \%theme);
+$dbo->parse_features('theme', \%theme);
 is_deeply(\%theme, \%theme_ref, 'features set with +all');
 
 $theme{$_} = undef foreach keys %theme;
 $theme_ref{$_} = 1 foreach keys %theme;
 $theme_ref{rusty} = 0;
 $dbo->set('theme', '+all,-rusty');
-$dbo->parse_option('theme', \%theme);
+$dbo->parse_features('theme', \%theme);
 is_deeply(\%theme, \%theme_ref, 'features set with +all,-rusty');
 
 $theme{$_} = undef foreach keys %theme;
 $theme_ref{$_} = 0 foreach keys %theme;
 $theme_ref{metal} = 1;
 $dbo->set('theme', '-all,+metal');
-$dbo->parse_option('theme', \%theme);
+$dbo->parse_features('theme', \%theme);
 is_deeply(\%theme, \%theme_ref, 'features set with +all,-rusty');
 
 $theme{$_} = $theme_ref{$_} = undef foreach keys %theme;
 $theme_ref{pink} = 1;
 $theme_ref{sky} = 0;
 $dbo->set('theme', '+pink,-sky');
-$dbo->parse_option('theme', \%theme);
+$dbo->parse_features('theme', \%theme);
 is_deeply(\%theme, \%theme_ref, 'features set with +pink,-sky');