Handle PL_minus_E before PL_minus_{n,p}.
[p5sagit/p5-mst-13.2.git] / ext / Devel / PPPort / t / SvPV.t
CommitLineData
adfe19db 1################################################################################
2#
3# !!!!! Do NOT edit this file directly! !!!!!
4#
5# Edit mktests.PL and/or parts/inc/SvPV instead.
6#
cac25305 7# This file was automatically generated from the definition files in the
8# parts/inc/ subdirectory by mktests.PL. To learn more about how all this
9# works, please read the F<HACKERS> file that came with this distribution.
10#
adfe19db 11################################################################################
12
13BEGIN {
14 if ($ENV{'PERL_CORE'}) {
15 chdir 't' if -d 't';
16 @INC = ('../lib', '../ext/Devel/PPPort/t') if -d '../lib' && -d '../ext';
17 require Config; import Config;
18 use vars '%Config';
a745474a 19 if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
adfe19db 20 print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
21 exit 0;
22 }
23 }
24 else {
25 unshift @INC, 't';
26 }
27
c07deaaf 28 sub load {
29 eval "use Test";
30 require 'testutil.pl' if $@;
adfe19db 31 }
c07deaaf 32
679ad62d 33 if (20) {
c07deaaf 34 load();
679ad62d 35 plan(tests => 20);
adfe19db 36 }
37}
38
39use Devel::PPPort;
40use strict;
41$^W = 1;
42
236afa0a 43package Devel::PPPort;
44use vars '@ISA';
45require DynaLoader;
46@ISA = qw(DynaLoader);
47bootstrap Devel::PPPort;
48
49package main;
50
679ad62d 51my $mhx = "mhx";
52
53ok(&Devel::PPPort::SvPVbyte($mhx), 3);
54
55my $i = 42;
56
57ok(&Devel::PPPort::SvPV_nolen($mhx), $i++);
58ok(&Devel::PPPort::SvPV_const($mhx), $i++);
59ok(&Devel::PPPort::SvPV_mutable($mhx), $i++);
60ok(&Devel::PPPort::SvPV_flags($mhx), $i++);
61ok(&Devel::PPPort::SvPV_flags_const($mhx), $i++);
62
63ok(&Devel::PPPort::SvPV_flags_const_nolen($mhx), $i++);
64ok(&Devel::PPPort::SvPV_flags_mutable($mhx), $i++);
65ok(&Devel::PPPort::SvPV_force($mhx), $i++);
66ok(&Devel::PPPort::SvPV_force_nolen($mhx), $i++);
67ok(&Devel::PPPort::SvPV_force_mutable($mhx), $i++);
68
69ok(&Devel::PPPort::SvPV_force_nomg($mhx), $i++);
70ok(&Devel::PPPort::SvPV_force_nomg_nolen($mhx), $i++);
71ok(&Devel::PPPort::SvPV_force_flags($mhx), $i++);
72ok(&Devel::PPPort::SvPV_force_flags_nolen($mhx), $i++);
73ok(&Devel::PPPort::SvPV_force_flags_mutable($mhx), $i++);
74
75ok(&Devel::PPPort::SvPV_nolen_const($mhx), $i++);
76ok(&Devel::PPPort::SvPV_nomg($mhx), $i++);
77ok(&Devel::PPPort::SvPV_nomg_const($mhx), $i++);
78ok(&Devel::PPPort::SvPV_nomg_const_nolen($mhx), $i++);
adfe19db 79