Remove duplicate documentation for SvREFCNT_inc().
[p5sagit/p5-mst-13.2.git] / ext / Devel / PPPort / t / pvs.t
CommitLineData
f2ab5a41 1################################################################################
2#
3# !!!!! Do NOT edit this file directly! !!!!!
4#
5# Edit mktests.PL and/or parts/inc/pvs instead.
6#
7################################################################################
8
9BEGIN {
10 if ($ENV{'PERL_CORE'}) {
11 chdir 't' if -d 't';
12 @INC = ('../lib', '../ext/Devel/PPPort/t') if -d '../lib' && -d '../ext';
13 require Config; import Config;
14 use vars '%Config';
15 if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
16 print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
17 exit 0;
18 }
19 }
20 else {
21 unshift @INC, 't';
22 }
23
24 eval "use Test";
25 if ($@) {
26 require 'testutil.pl';
27 print "1..7\n";
28 }
29 else {
30 plan(tests => 7);
31 }
32}
33
34use Devel::PPPort;
35use strict;
36$^W = 1;
37
38my $x = 'foo';
39
40ok(Devel::PPPort::newSVpvs(), "newSVpvs");
41
42Devel::PPPort::sv_catpvs($x);
43ok($x, "foosv_catpvs");
44
45Devel::PPPort::sv_setpvs($x);
46ok($x, "sv_setpvs");
47
48my %h = ('hv_fetchs' => 42);
49Devel::PPPort::hv_stores(\%h, 4711);
50ok(scalar keys %h, 2);
51ok(exists $h{'hv_stores'});
52ok($h{'hv_stores'}, 4711);
53ok(Devel::PPPort::hv_fetchs(\%h), 42);
54