Changeset 22625 for t

Show
Ignore:
Timestamp:
10/15/08 22:10:41 (3 months ago)
Author:
particle
Message:

[t] add three tests for import, currently failing in rakudo

Location:
t/spec
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/packages/S11-modules/Foo.pm

    r22481 r22625  
    1 module Foo; 
    2 sub foo is export(:DEFAULT)         { 'Foo::foo' }  #  :DEFAULT, :ALL 
    3 sub bar is export(:DEFAULT :others) { 'Foo::bar' }  #  :DEFAULT, :ALL, :others 
    4 sub baz is export(:MANDATORY)       { 'Foo::baz' }  #  (always exported) 
    5 sub bop is export                   { 'Foo::bop' }  #  :ALL 
    6 sub qux is export(:others)          { 'Foo::qux' }  #  :ALL, :others 
     1# L<S11/"Exportation"/> 
    72 
     3module t::spec::packages::S11-modules::Foo; 
     4sub foo is export(:DEFAULT)          { 'Foo::foo' }  #  :DEFAULT, :ALL 
     5sub bar is export(:DEFAULT, :others) { 'Foo::bar' }  #  :DEFAULT, :ALL, :others 
     6sub baz is export(:MANDATORY)        { 'Foo::baz' }  #  (always exported) 
     7sub bop is export                    { 'Foo::bop' }  #  :ALL 
     8sub qux is export(:others)           { 'Foo::qux' }  #  :ALL, :others 
     9