Changeset 22622 for t

Show
Ignore:
Timestamp:
10/15/08 16:09:29 (3 months ago)
Author:
particle
Message:

[t] add tests for :MANDATORY tagset

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S11-modules/export.t

    r22617 r22622  
    22use Test; 
    33 
    4 plan 25; 
     4plan 30; 
    55 
    66# L<S11/"Exportation"/> 
    77 
    8 sub exp_no_parens is export                      { 'exp_no_parens' } 
     8sub exp_no_parens    is export                   { 'exp_no_parens' } 
    99sub exp_empty_parens is export()                 { 'exp_empty_parens' } 
    10 sub exp_ALL is export( :ALL )                    { 'exp_ALL' } 
    11 sub exp_DEFAULT is export( :DEFAULT )            { 'exp_DEFAULT' } 
    12 sub exp_ALL_DEFAULT is export( :ALL, :DEFAULT )  { 'exp_ALL_DEFAULT' } 
    13 sub exp_my_tag is export( :my_tag )              { 'exp_my_tag' } 
     10sub exp_ALL          is export( :ALL )           { 'exp_ALL' } 
     11sub exp_DEFAULT      is export( :DEFAULT )       { 'exp_DEFAULT' } 
     12sub exp_ALL_DEFAULT  is export( :ALL, :DEFAULT ) { 'exp_ALL_DEFAULT' } 
     13sub exp_MANDATORY    is export( :MANDATORY )     { 'exp_MANDATORY' } 
     14sub exp_my_tag       is export( :my_tag )        { 'exp_my_tag' } 
    1415 
    1516 
     
    6465 
    6566 
     67##  exp_MANDATORY 
     68ok( &exp_MANDATORY === &EXPORT::ALL::exp_MANDATORY, 
     69    'exp_MANDATORY -- values agree' ); 
     70ok( &exp_MANDATORY =:= &EXPORT::ALL::exp_MANDATORY, 
     71    'exp_MANDATORY -- containers agree' ); 
     72 
     73ok( &exp_MANDATORY === &EXPORT::MANDATORY::exp_MANDATORY, 
     74    'exp_MANDATORY -- values agree' ); 
     75ok( &exp_MANDATORY =:= &EXPORT::MANDATORY::exp_MANDATORY, 
     76    'exp_MANDATORY -- containers agree' ); 
     77 
     78ok( ! &EXPORT::DEFAULT::exp_MANDATORY, 
     79    'exp_MANDATORY -- EXPORT::DEFAULT::exp_MANDATORY does not exist' ); 
     80 
     81 
    6682##  exp_my_tag 
    6783ok( &exp_my_tag === &EXPORT::ALL::exp_my_tag,