### ----------------------------------------------------
### -- App::RaCoCo
### -- Licenses: Artistic-2.0
### -- Authors: Mikhail Khorkov
### -- File: t/14-project-name.rakutest
### ----------------------------------------------------
use Test;
use lib 'lib';
use App::Racoco::ProjectName;
use lib 't/lib';
use Fixture;
use TestHelper;
use TestResources;

plan 2;

my ($paths);
sub setup() {
	plan $*plan;
	TestResources::prepare($*subtest);
	$paths = Fixture::make-paths(TestResources::exam-directory);
}

'01-from-meta'.&test(:1plan, {
	setup();
	is project-name(:$paths), 'Test::Project';
});

'02-from-root'.&test(:1plan, {
	setup();
	is project-name(:$paths), 'exam';
});


