Skip to content

Commit

Permalink
Add another test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 19, 2024
1 parent 34d14f5 commit febb0c8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions t/conflicts.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w

use strict;
use Test::More tests => 16;
use Test::More tests => 17;

require 't/testlib.pm';

Expand Down Expand Up @@ -33,9 +33,11 @@ P: y = 1-1
R: x
P: z = 1-1 z1
P: z2 = 1-1 z
P: z3 = 1-1
P: z4 = 1-1 z3
EOR

my $config = setuptest($repo, "Conflict: i:j\nConflict: x");
my $config = setuptest($repo, "Conflict: i:j\nConflict: x\nConflict: z3");
my @r;

# test that conflicts can fix choices
Expand Down Expand Up @@ -90,3 +92,6 @@ is_deeply(\@r, [undef, '(provider x is in conflict)', 'conflict for providers of

@r = expand($config, 'z', '!z1');
is_deeply(\@r, [1, 'z2'], 'install z !z1');

@r = expand($config, 'z3');
is_deeply(\@r, [1, 'z4'], 'install z3');

0 comments on commit febb0c8

Please sign in to comment.