Changeset 22041

Show
Ignore:
Timestamp:
08/27/08 11:31:09 (3 months ago)
Author:
moritz
Message:

[t/spec] fudged boolean-context.t for rakudo.
This is a bit ugly, because fudge doesn't understand the test syntax

Files:
1 modified

Legend:

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

    r22040 r22041  
    3333 
    3434(1|undef && pass '1|undef in boolean context') || fail '1|undef in boolean context'; 
     35#?rakudo skip 'Junctions and short-circituing operators' 
     36#?DOES 1 
     37{ 
    3538(1 & undef && fail '1&undef in boolean context') || pass '1&undef in boolean context'; 
     39} 
    3640(1^undef && pass '1^undef in boolean context') || fail '1^undef in boolean context'; 
    3741 
     
    4347ok !(undef^0), 'undef^0 in boolean context'; 
    4448 
    45 (0 | undef && fail '0|undef in boolean context') || pass '0|undef in boolean context';; 
    46 (0 & undef && fail '0&undef in boolean context') || pass '0&undef in boolean context';; 
    47 (0 ^ undef && fail '0^undef in boolean context') || pass '0^undef in boolean context';; 
     49# this can in principle be TODOed, but fudge doesn't understand the test 
     50# format 
     51#?rakudo skip 'Junctions and short-circuiting operators' 
     52#?DOES 3 
     53{ 
     54    (0 | undef && fail '0|undef in boolean context') || pass '0|undef in boolean context'; 
     55    (0 & undef && fail '0&undef in boolean context') || pass '0&undef in boolean context'; 
     56    (0 ^ undef && fail '0^undef in boolean context') || pass '0^undef in boolean context'; 
     57} 
    4858 
    4959ok 0|undef == 0, '0|undef == 0 in boolean context';