Changeset 22702 for t

Show
Ignore:
Timestamp:
10/22/08 23:07:15 (3 months ago)
Author:
moritz
Message:

[t/spec] some fudging of instance.t, and small corrections

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S12-methods/instance.t

    r22701 r22702  
    1616  method noargs () { 42 } 
    1717  method nobrackets { 'mice' } 
    18   method callsmethod1() { .noargs(); } 
    19   method callsmethod2 { .noargs(); } 
     18  method callsmethod1() { self.noargs(); } 
     19  method callsmethod2 { self.noargs(); } 
    2020} 
    2121 
     
    2424 
    2525my $val; 
    26 lives_ok { 
    27     $val = doit $foo: 1,2,3; 
    28 }, '... indirect method invocation works'; 
     26#?rakudo skip 'parse error' 
     27lives_ok { $val = doit $foo: 1,2,3; }, '... indirect method invocation works'; 
     28#?rakudo skip 'test dependency' 
    2929is($val, 6, '... got the right value for indirect method invocation'); 
    3030 
     
    3434{ 
    3535    my $val; 
    36     lives_ok { 
    37         eval '$val = $foo.noargs()'; 
    38         die $! if $!; 
    39     }, "... <space> + parentheses after method"; 
     36    lives_ok { $val = $foo.noargs(); }, "... <space> + parentheses after method"; 
    4037    is($val, 42, '... we got the value correctly'); 
    4138} 
     
    4946} 
    5047 
     48#?rakudo skip 'parse error (or test error?)' 
    5149{ 
    5250    my $val; 
     
    8381    } 
    8482    dies_ok( { Zoo.new.a }, "can't call current object methods on lexical data structures"); 
     83    #?rakudo todo 'method should not be usable as sub' 
    8584    dies_ok( { Zoo.new.c }, "meth(%h) is not a valid method call syntax"); 
    8685}