Changeset 22867 for t

Show
Ignore:
Timestamp:
11/04/08 14:28:22 (2 months ago)
Author:
jnthn
Message:

[spectest] Test for the case where a named enum has a single value, plus test export of declared enum values.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S12-enums/basic.t

    r22515 r22867  
    11use v6; 
    22use Test; 
    3 plan 6; 
     3plan 9; 
    44 
    55# Very basic enum tests 
     
    1111    is Day::Sun, 0, 'First item of an enum is 0'; 
    1212    is Day::Sat, 6, 'Last item has the right value'; 
     13    is Sun,      0, 'Values exported into namespace too.'; 
     14    is Sat,      6, 'Values exported into namespace too.'; 
    1315} 
    1416 
     
    2224} 
    2325 
     26enum JustOne <Thing>; 
     27{ 
     28    is JustOne::Thing, 0, 'Enum of one element works.'; 
     29}