use v6.d;

use lib $?FILE.IO.parent(2).add('packages');

use Test;
plan 2;

{
    need Export_PackA;

    is Export_PackA::exported_foo(),
       42, 'Can "need" a module';
    throws-like 'exported_foo()',
        X::Undeclared::Symbols, '"need" did not import the default export list';
}

# vim: ft=perl6
