Changeset 21167

Show
Ignore:
Timestamp:
07/02/08 12:19:05 (5 months ago)
Author:
moritz
Message:

[spec] unfudged a few tests, added a test to S29-str/lc.t

Location:
t/spec
Files:
3 modified

Legend:

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

    r21086 r21167  
    3636    is(@(),  @($/), '@() should be the same as @($/)'); 
    3737 
    38     #?rakudo 1 skip 'zip does not work' 
    3938    is((@ 1,2 Z 3,4), <1 3 2 4>, '@ operator has proper precedence to change context of zip infix'); 
    4039} 
     
    6160    is((item $a, $b), @array, 'item($a, $b) is the same as <<$a $b>> in an array'); 
    6261 
    63     #?rakudo 1 skip 'zip is broken' 
    6462    is(($ 1,2 Z 3,4), [[1,3], [2,4]], '$ operator has proper precendence to change context of zip infix'); 
    6563} 
     
    8886# L<S03/Changes to Perl 5 operators/Perl 5's ${...}, @{...}, %{...}, etc> 
    8987# Deprecated P5 dereferencing operators: 
    90 #?rakudo skip 'Perl5 dereferencing syntax warnings not implemented yet' 
    9188{ 
    9289    my $scalar = 'abcd'; 
  • t/spec/S03-operators/repeat.t

    r21155 r21167  
    1818is('' x 6, '', 'repeating an empty string creates an empty string'); 
    1919is('a' x 0, '', 'repeating zero times produces an empty string'); 
    20 #?rakudo skip 'TODO: infix:<x>($str, -1)' 
    2120is('a' x -1, '', 'repeating negative times produces an empty string'); 
    2221 
  • t/spec/S29-str/lc.t

    r20390 r21167  
    33use Test; 
    44 
    5 plan 11; 
     5plan 12; 
    66 
    77# L<S29/Str/lc> 
     
    2626    my $x = "Hello World"; 
    2727    is($x.lc, "hello world", '$x.lc works'); 
     28    is($x, 'Hello World', 'Invocant unchanged'); 
    2829    is("Hello World".lc, "hello world", '"Hello World".lc works'); 
    2930}