Changeset 22856 for t

Show
Ignore:
Timestamp:
11/03/08 11:53:31 (2 months ago)
Author:
masak
Message:

[S03-junctions/boolean-context.t] added test for collapsing of junctions in boolean context

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S03-junctions/boolean-context.t

    r22450 r22856  
    11use v6; 
    22use Test; 
    3 plan 37; 
     3plan 38; 
    44 
    55# L<S03/Junctive operators/> 
     
    5858 
    5959ok 0|undef == 0, '0|undef == 0 in boolean context'; 
     60 
     61ok ("A" eq "A"|"B").perl eq 'Bool::True', 'a junction of booleans collapses to a boolean';