2 # Copyright (C) 2006-2010, Parrot Foundation.
7 t/pmc/packfileannotation.t - test the PackfileAnnotation PMC
11 % prove t/pmc/packfileannotation.t
15 Tests the PackfileAnnotation PMC.
19 # PackfileAnnotation constructor
21 .include 'test_more.pir'
26 pa = new ['PackfileAnnotation']
28 ok($I0, 'PackfileAnnotation created')
31 pa.'set_offset'(115200)
35 is($S0, 'line', 'Name stored and fetched')
36 $I0 = pa.'get_offset'()
37 is($I0, 115200, 'Offset stored and fetched')
39 is($I0, 42, 'Value stored and fetched')
41 # We can't fetch string from integer annotation
48 ok($I0, "Can't fetch wrong value from Annotation")
56 # vim: expandtab shiftwidth=4 ft=pir: