Show
Ignore:
Timestamp:
08/06/05 23:00:58 (3 years ago)
Author:
Stevan
Message:

Perl6::MetaModel? - (p5)
* $?CLASS now returns the ::Class object
* all methods and attributes are now associated with the ::Class object

instead of just the class name

* improved the name of ::get_obj_id to ::get_P6opaque_instance_id so that

no one will try to use it :P

* also added ::get_P6opaque_instance_class to peek into the class slot

(needed this for submethods)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • perl5/Perl6-MetaModel/t/15_CLASS.t

    r5790 r6094  
    4040        $val = Foo->this_will_not_die(); 
    4141    } '... CLASS can be called from a Class method'; 
    42     is($val, 'Foo', '... got the right value from CLASS too'); 
     42    isa_ok($val, 'Foo'); 
    4343} 
    4444 
     
    5151        $val = $foo->bar(); 
    5252    } '... CLASS can be used to call Class methods'; 
    53     is($val, 'Foo', '... got the right value from CLASS too'); 
     53    isa_ok($val, 'Foo'); 
    5454} 
    5555 
     
    5959        $val = $foo->foo(); 
    6060    } '... CLASS can be called from an instance method'; 
    61     is($val, 'Foo', '... got the right value from CLASS too'); 
     61    isa_ok($val, 'Foo'); 
    6262}