### ----------------------------------------------------
### -- CompUnit::Repository::Tar
### -- Licenses: Artistic-2.0
### -- Authors: ugexe
### -- File: t/resolve.rakutest
### ----------------------------------------------------
use Test:ver<6.c+>;
plan 2;

use CompUnit::Repository::Tar;
use lib "CompUnit::Repository::Tar#{CompUnit::Repository::Tar.test-dist('Distribution--Common-v0.1.0.tar.gz')}";


my $matching-spec = CompUnit::DependencySpecification.new(
    short-name      => 'Distribution::Common',
    auth-matcher    => 'github:ugexe',
);
my $missing-spec = CompUnit::DependencySpecification.new(
    short-name      => 'Distribution::Common',
    auth-matcher    => 'cpan:ugexe',
    version-matcher => '666',
);

ok  $*REPO.repo-chain[0].resolve($matching-spec);
nok $*REPO.repo-chain[0].resolve($missing-spec);

done-testing;


