7 # Some addresses for testing.
12 my $t1 = XS::APItest::PtrTable->new();
13 isa_ok($t1, 'XS::APItest::PtrTable');
14 my $t2 = XS::APItest::PtrTable->new();
15 isa_ok($t2, 'XS::APItest::PtrTable');
16 cmp_ok($t1, '!=', $t2, 'Not the same object');
21 isa_ok($t1, 'XS::APItest::PtrTable');
23 is($t1->fetch($a), 0, 'Not found');
24 is($t1->fetch($h), 0, 'Not found');
25 is($t1->fetch($c), 0, 'Not found');
29 cmp_ok($t1->fetch($a), '==', $h, 'Found');
30 is($t1->fetch($h), 0, 'Not found');
31 is($t1->fetch($c), 0, 'Not found');
35 cmp_ok($t1->fetch($a), '==', $h, 'Found');
36 is($t1->fetch($h), 0, 'Not found');
37 is($t1->fetch($c), 0, 'Not found');
41 is($t1->fetch($a), 0, 'Not found');
42 is($t1->fetch($h), 0, 'Not found');
43 is($t1->fetch($c), 0, 'Not found');