Rename ext/Devel/PPPort to ext/Devel-PPPort
[p5sagit/p5-mst-13.2.git] / ext / Devel-PPPort / t / uv.t
CommitLineData
adfe19db 1################################################################################
2#
3# !!!!! Do NOT edit this file directly! !!!!!
4#
5# Edit mktests.PL and/or parts/inc/uv 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';
0ff33da8 16 @INC = ('../lib', '../ext/Devel-PPPort/t') if -d '../lib' && -d '../ext';
adfe19db 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
33 if (10) {
34 load();
96ad942f 35 plan(tests => 10);
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
adfe19db 51ok(&Devel::PPPort::sv_setuv(42), 42);
52ok(&Devel::PPPort::newSVuv(123), 123);
53ok(&Devel::PPPort::sv_2uv("4711"), 4711);
54ok(&Devel::PPPort::sv_2uv("1735928559"), 1735928559);
55ok(&Devel::PPPort::SvUVx("1735928559"), 1735928559);
56ok(&Devel::PPPort::SvUVx(1735928559), 1735928559);
57ok(&Devel::PPPort::SvUVx(0xdeadbeef), 0xdeadbeef);
58ok(&Devel::PPPort::XSRETURN_UV(), 42);
96ad942f 59ok(&Devel::PPPort::PUSHu(), 42);
60ok(&Devel::PPPort::XPUSHu(), 43);
adfe19db 61