Cross Reference:
xref
: /
illumos-gate
/
usr
/
src
/
cmd
/
perl
/
5.8.4
/
distrib
/
lib
/
ExtUtils
/
t
/
bytes.t
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
bytes.t revision 7c478bd95313f5f23a4c958a745db2134aa03244
#!/
usr
/
bin
/
perl
-w
BEGIN
{
if
(
$ENV
{
PERL_CORE
} )
{
chdir
't'
if
-d
't'
;
@
INC
=
(
'../lib'
,
'lib'
)
;
}
else
{
unshift
@
INC
,
'
t
/
lib
'
;
}
}
use
strict
;
use
Test
::
More
tests
=>
4
;
use_ok
(
'ExtUtils::MakeMaker::bytes'
)
;
SKIP
:
{
skip
"
bytes.pm
appeared in 5.6"
,
3
if
$] <
5.006
;
my
$chr
=
chr
(
400
)
;
is
(
length
$chr
,
1
)
;
{
use
ExtUtils
::
MakeMaker
::
bytes
;
is
(
length
$chr
,
2
,
'
byte.pm
in effect'
)
;
}
is
(
length
$chr
,
1
,
' score is lexical'
)
;
}