Changeset 22040
- Timestamp:
- 08/27/08 11:14:56 (3 months ago)
- Files:
-
- 1 modified
-
t/spec/S03-junctions/boolean-context.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
t/spec/S03-junctions/boolean-context.t
r22039 r22040 5 5 # L<S03/Junctive Operators/> 6 6 7 ok any(1..2), 'any(1..2) in boolean context';7 ok ?any(1..2), 'any(1..2) in boolean context'; 8 8 ok !(any(0,0)), 'any(0,0) in boolean context'; 9 9 ok !(one(1..2)), 'one(1..2) in boolean context'; 10 ok 1|2, '1|2 in boolean context';10 ok ?(1|2), '1|2 in boolean context'; 11 11 ok !(1^2), '1^2 in boolean context'; 12 12 ok !(undef|0), 'undef|0 in boolean context'; … … 15 15 ok !(defined undef), 'defined undef in boolean context'; 16 16 ok !(all(undef, undef)), 'all(undef, undef) in boolean context'; 17 ok all(1,1), 'all(1,1) in boolean context';17 ok ?all(1,1), 'all(1,1) in boolean context'; 18 18 ok !(all(1,undef)), 'all(1,undef) in boolean context'; 19 19 20 ok 1|undef, '1|undef in boolean context';21 ok undef|1, 'undef|1 in boolean context';20 ok ?(1|undef), '1|undef in boolean context'; 21 ok ?(undef|1), 'undef|1 in boolean context'; 22 22 ok !(1&undef), '1&undef in boolean context'; 23 23 ok !(undef&1), 'undef&1 in boolean context'; 24 ok 1^undef, '1^undef in boolean context';25 ok undef^1, 'undef^1 in boolean context';24 ok ?(1^undef), '1^undef in boolean context'; 25 ok ?(undef^1), 'undef^1 in boolean context'; 26 26 27 ok -1|undef, '-1|undef in boolean context';28 ok undef|-1, 'undef|-1 in boolean context';27 ok ?(-1|undef), '-1|undef in boolean context'; 28 ok ?(undef|-1), 'undef|-1 in boolean context'; 29 29 ok !(-1&undef), '-1&undef in boolean context'; 30 30 ok !(undef&-1), 'undef&-1 in boolean context'; 31 ok -1^undef, '-1^undef in boolean context';32 ok undef^-1, 'undef^-1 in boolean context';31 ok ?(-1^undef), '-1^undef in boolean context'; 32 ok ?(undef^-1), 'undef^-1 in boolean context'; 33 33 34 34 (1|undef && pass '1|undef in boolean context') || fail '1|undef in boolean context';
