Changeset 19197

Show
Ignore:
Timestamp:
12/12/07 20:24:49 (12 months ago)
Author:
ferreira
Message:

r180@dracma: perl | 2007-12-12 17:24:08 -0200
fix todo test: ?| produces Bool, and False does not stringify to 0

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/operators/operator.t

    r16856 r19197  
    5454# L<S03/Tight or precedence/short-circuiting inclusive-or> 
    5555is(2 || 3, 2, "|| returns first true value"); 
    56 is(2 ?| 3, 1, "boolean or (?|) returns 0 or 1"); 
    5756ok(!(defined( 0 || undef)), "|| returns last false value of list?"); 
    58 is(0 ?| undef, 0, "boolean or (?|) returns 0 or 1", :todo); 
     57 
     58is(2 ?| 3, True, "boolean or (?|) returns True or False");  
     59is(0 ?| undef, False, "boolean or (?|) returns True or False"); 
    5960 
    6061# L<S03/Junctive operators/They thread through operations> 
     
    8586@rv = (1,2,3,4) >>+<< (1,2,3,4); 
    8687is("@rv[]", "2 4 6 8", 'hyper-add'); 
     88