Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 37 lines (25 sloc) 0.818 kb
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
use v6;

# L<S11/Exportation>

use Test;

plan 7;

# (Automatic s:g/::/$PATH_SEPARATOR_OF_CUR_OS/)++
use t::spec::packages::Export_PackB;

ok t::spec::packages::Export_PackB::does_export_work(),
  "'is export' works correctly even when not exporting to Main (1)";

# t::spec::packages::Export_PackA::exported_foo should not have been exported into
# our namespace.
dies_ok { exported_foo() },
  "'is export' works correctly even when not exporting to Main (2)";

{
    use t::spec::packages::Export_PackC;
    lives_ok { foo_packc() }, "lexical export works";
}
dies_ok { foo_packc() }, "lexical export is indeed lexical";


sub moose {
    use t::spec::packages::Export_PackD;
    is(this_gets_exported_lexically(), 'moose!', "lexical import survives pad regeneration")
}

moose();
moose();
moose();

# vim: ft=perl6
Something went wrong with that request. Please try again.