X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fvec.t;h=4b8934d7a2b8e1434c29f5adb909f070b99eaf2a;hb=95e8664e86da93255f26600f44bbbd70bf5b5b0e;hp=7fe09747704325f485a1366e0bd20a4f7fc374a9;hpb=33b454808819084359e76a3f223a41b842c180b7;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/vec.t b/t/op/vec.t index 7fe0974..4b8934d 100755 --- a/t/op/vec.t +++ b/t/op/vec.t @@ -2,6 +2,8 @@ print "1..30\n"; +my $Is_EBCDIC = (ord('A') == 193) ? 1 : 0; + print vec($foo,0,1) == 0 ? "ok 1\n" : "not ok 1\n"; print length($foo) == 0 ? "ok 2\n" : "not ok 2\n"; vec($foo,0,1) = 1; @@ -62,8 +64,14 @@ print "ok 25\n"; eval { vec($foo, 1, 8) = 13 }; print "not " if $@; print "ok 26\n"; -print "not " if $foo ne "\xc4\x0d\xc3\xbf\xc3\xbe"; -print "ok 27\n"; +if ($Is_EBCDIC) { + print "not " if $foo ne "\x8c\x0d\xff\x8a\x69"; + print "ok 27\n"; +} +else { + print "not " if $foo ne "\xc4\x0d\xc3\xbf\xc3\xbe"; + print "ok 27\n"; +} $foo = "\x{100}" . "\xff\xfe"; $x = substr $foo, 1; vec($x, 2, 4) = 7;