2 # Copyright (C) 2007-2008, Parrot Foundation.
7 t/op/copy - Testing the copy opcode
15 Tests various PMCs with copy.
20 .include 'test_more.pir'
39 isa_ok( dest, 'Float', 'copy should change type of PMC' )
40 is( dest, 1.28, '... and its value' )
45 my_float = subclass 'Float', 'Num'
64 is( dest, 3.2, 'copy should make independent copies' )
80 is( msg, 'Null PMC in copy', 'copy to null throws' )
87 # vim: expandtab shiftwidth=4 ft=pir: