瀏覽代碼

test: Rename parse_option to parse_features

Missed in commit dad593660d922abce634542b43e9d56b03228a8c.
Guillem Jover 9 年之前
父節點
當前提交
cccf56a596
共有 1 個文件被更改,包括 4 次插入4 次删除
  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;
 $theme_ref{$_} = 1 foreach keys %theme;
 $dbo->set('theme', '+all');
 $dbo->set('theme', '+all');
-$dbo->parse_option('theme', \%theme);
+$dbo->parse_features('theme', \%theme);
 is_deeply(\%theme, \%theme_ref, 'features set with +all');
 is_deeply(\%theme, \%theme_ref, 'features set with +all');
 
 
 $theme{$_} = undef foreach keys %theme;
 $theme{$_} = undef foreach keys %theme;
 $theme_ref{$_} = 1 foreach keys %theme;
 $theme_ref{$_} = 1 foreach keys %theme;
 $theme_ref{rusty} = 0;
 $theme_ref{rusty} = 0;
 $dbo->set('theme', '+all,-rusty');
 $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');
 is_deeply(\%theme, \%theme_ref, 'features set with +all,-rusty');
 
 
 $theme{$_} = undef foreach keys %theme;
 $theme{$_} = undef foreach keys %theme;
 $theme_ref{$_} = 0 foreach keys %theme;
 $theme_ref{$_} = 0 foreach keys %theme;
 $theme_ref{metal} = 1;
 $theme_ref{metal} = 1;
 $dbo->set('theme', '-all,+metal');
 $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');
 is_deeply(\%theme, \%theme_ref, 'features set with +all,-rusty');
 
 
 $theme{$_} = $theme_ref{$_} = undef foreach keys %theme;
 $theme{$_} = $theme_ref{$_} = undef foreach keys %theme;
 $theme_ref{pink} = 1;
 $theme_ref{pink} = 1;
 $theme_ref{sky} = 0;
 $theme_ref{sky} = 0;
 $dbo->set('theme', '+pink,-sky');
 $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');
 is_deeply(\%theme, \%theme_ref, 'features set with +pink,-sky');