Changeset 22898 for t

Show
Ignore:
Timestamp:
11/06/08 12:31:35 (2 months ago)
Author:
jnthn
Message:

[spectest] Correct a test that got indirect method invocation syntax wrong, and un-todo it for Rakudo. Also un-todo a test that pended on object stringification.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • t/spec/S12-class/inheritance.t

    r22897 r22898  
    3838is($foo_bar.fud(), 'Foo::Bar::fud', '... sanity check on uninherited method'); 
    3939 
    40 #?rakudo skip 'stringification of objects' 
     40 
    4141is($foo_bar.getme, $foo_bar, 'can call inherited methods'); 
    4242is($foo_bar.getme.baz, "Foo::Bar::baz", 'chained method dispatch on altered method'); 
     
    7373ok  Foo::Bar.HOW.does(Foo::BAR, ::CLASS),  "subclass.HOW.does(CLASS) is true"; 
    7474 
    75  
    76 #?rakudo skip 'indirect method call syntax' 
    7775{ 
    7876    my $test = '$obj.$meth is canonical (audreyt says)'; 
     
    8179    } 
    8280    class Child is Abc { } 
    83     is( eval('my $meth = "foo"; my $obj= Child.new; $obj.$meth()'), 'found', $test); 
     81    is( eval('my $meth = "foo"; my $obj= Child.new; $obj."$meth"()'), 'found', $test); 
    8482} 
    8583