1 ################################################################################
3 # !!!!! Do NOT edit this file directly! !!!!!
5 # Edit mktests.PL and/or parts/inc/pv_tools instead.
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.
11 ################################################################################
14 if ($ENV{'PERL_CORE'}) {
16 @INC = ('../lib', '../ext/Devel/PPPort/t') if -d '../lib' && -d '../ext';
17 require Config; import Config;
19 if (" $Config{'extensions'} " !~ m[ Devel/PPPort ]) {
20 print "1..0 # Skip -- Perl configured without Devel::PPPort module\n";
30 require 'testutil.pl' if $@;
43 package Devel::PPPort;
46 @ISA = qw(DynaLoader);
47 bootstrap Devel::PPPort;
51 my $uni = &Devel::PPPort::pv_escape_can_unicode();
54 ok($uni ? $] >= 5.006 : $] < 5.008);
58 @r = &Devel::PPPort::pv_pretty();
60 ok($r[0], "foobarbaz");
62 ok($r[2], '<leftpv_p\retty\nright>');
64 ok($r[4], $uni ? 'N\375 Batter\355' : 'N\303\275 Batter\303');
66 ok($r[6], $uni ? '\301g\346tis Byrju...' : '\303\201g\303\246t...');
68 @r = &Devel::PPPort::pv_display();
70 ok($r[0], '"foob\0rbaz"\0');
72 ok($r[2] eq '"pv_di"...\0' ||
73 $r[2] eq '"pv_d"...\0'); # some perl implementations are broken... :(