summaryrefslogtreecommitdiffstats
path: root/t/basic.t
blob: 94b8dbd0dd520fea2a8eef59d1e8bf712d380cf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;
use lib 't/lib/basic';

{
    require Foo::Conflicts;
    is_deeply(
        { Foo::Conflicts->conflicts },
        {
            'Foo::Thing'      => '0.01',
            'Foo::Thing::Sub' => '0.05',
        },
        "basic conflicts work"
    );
}

{
    require Bar::Conflicts;
    is_deeply(
        { Bar::Conflicts->conflicts },
        {
            'Bar::Local'      => '0.02',
            'Bar::Also'       => '0.06',
            'Bar::Also::Also' => '0.12',
        },
        "nested conflicts work"
    );
    is_deeply(
        { Bar::Conflicts2->conflicts },
        {
            'Bar::Also'       => '0.06',
            'Bar::Also::Also' => '0.12',
        },
        "nested conflicts work"
    );
    is_deeply(
        { Bar::Conflicts3->conflicts },
        {
            'Bar::Also::Also' => '0.12',
        },
        "nested conflicts work"
    );
}

done_testing;