2 # Copyright (C) 2001-2010, Parrot Foundation.
7 t/pmc/handle.t - Handle basic type
11 % prove t/pmc/handle.t
15 Tests the Handle PMC. Handle is abstract, so no real tests of functionality
21 .include 'test_more.pir'
29 push_eh cant_instantiate
31 ok(0, "Can instantiate an abstract type")
35 ok(1, "Cannot instantiate an abstract type")
40 push_eh cant_instantiate_arg
41 $P0 = new ['Handle'], $P1
42 ok(0, "Can instantiate an abstract type with arg")
46 ok(1, "Cannot instantiate an abstract type with arg")
51 .sub 'test_does_tt_1473'
53 $P0 = get_class 'Handle'
54 $I0 = does $P0, 'Handle'
55 ok($I0, "Handle does Handle")
58 ok(0, "Does throws an exception")
68 # vim: expandtab shiftwidth=4 ft=pir: