|
@@ -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');
|