blob: 7838957f19cb9afdee868b5ef59c0872672cd3b5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
#!/usr/bin/perl
use strict;
use warnings;
use Test::More tests => 2;
use Lintian::Relation;
my $relation = Lintian::Relation->new->load('pkgA, altA | altB');
ok($relation->satisfies('pkgA'), 'Satisfies');
ok(!$relation->satisfies('altA'), 'Satisfies alt');
# Local Variables:
# indent-tabs-mode: nil
# cperl-indent-level: 4
# End:
# vim: syntax=perl sw=4 sts=4 sr et
|