Changeset 19197
- Timestamp:
- 12/12/07 20:24:49 (12 months ago)
- Files:
-
- 1 modified
-
t/operators/operator.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/operators/operator.t
r16856 r19197 54 54 # L<S03/Tight or precedence/short-circuiting inclusive-or> 55 55 is(2 || 3, 2, "|| returns first true value"); 56 is(2 ?| 3, 1, "boolean or (?|) returns 0 or 1");57 56 ok(!(defined( 0 || undef)), "|| returns last false value of list?"); 58 is(0 ?| undef, 0, "boolean or (?|) returns 0 or 1", :todo); 57 58 is(2 ?| 3, True, "boolean or (?|) returns True or False"); 59 is(0 ?| undef, False, "boolean or (?|) returns True or False"); 59 60 60 61 # L<S03/Junctive operators/They thread through operations> … … 85 86 @rv = (1,2,3,4) >>+<< (1,2,3,4); 86 87 is("@rv[]", "2 4 6 8", 'hyper-add'); 88
