Changeset 22631 for t

Show
Ignore:
Timestamp:
10/16/08 18:51:42 (3 months ago)
Author:
lwall
Message:

s/where/also/

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S03-operators/where.t

    r22611 r22631  
    22plan 8; 
    33 
    4 # L<S03/"Junctive and (all) precedence"/"infix:<where>"> 
     4# L<S03/"Junctive and (all) precedence"/"infix:<also>"> 
    55 
    6 ok ?(1 where 2),         "basic infix:<where>"; 
    7 ok ?(1 where 2 where 3), "basic infix:<where> (multiple where's)"; 
    8 ok !(0 where 1),         "where has and-semantics (first term 0)"; 
    9 ok !(1 where 0),         "where has and-semantics (second term 0)"; 
     6ok ?(1 also 2),         "basic infix:<also>"; 
     7ok ?(1 also 2 also 3), "basic infix:<also> (multiple also's)"; 
     8ok !(0 also 1),         "also has and-semantics (first term 0)"; 
     9ok !(1 also 0),         "also has and-semantics (second term 0)"; 
    1010 
    1111my $x = ''; 
    1212 
    13 ok ?('a' ~~ { $x ~= "b"; True } where { $x ~= "c"; True }), 'where with two blocks'; 
     13ok ?('a' ~~ { $x ~= "b"; True } also { $x ~= "c"; True }), 'also with two blocks'; 
    1414is $x, 'bc', 'blocks called in the right order'; 
    1515 
    1616my $executed = 0; 
    1717 
    18 ok !('a' ~~ 'b' where { $executed = 1; True }), 'and semantics'; 
     18ok !('a' ~~ 'b' also { $executed = 1; True }), 'and semantics'; 
    1919ok !$executed,                            'short-circuit'; 
    2020