rename byte:: to bytes::
[p5sagit/p5-mst-13.2.git] / t / op / ver.t
CommitLineData
3cb0bbe5 1#!./perl
2
3BEGIN {
4 chdir 't' if -d 't';
5 unshift @INC, "../lib";
6}
7
8print "1..6\n";
9
10my $test = 1;
11
12use v5.5.640;
13require v5.5.640;
14print "ok $test\n"; ++$test;
15
16print "not " unless v1.20.300.4000 eq "\x{1}\x{14}\x{12c}\x{fa0}";
17print "ok $test\n"; ++$test;
18
19print "not " unless v1.20.300.4000 > 1.0203039 and v1.20.300.4000 < 1.0203041;
20print "ok $test\n"; ++$test;
21
22print "not " unless sprintf("%v", "Perl") eq '80.101.114.108';
23print "ok $test\n"; ++$test;
24
25print "not " unless sprintf("%v", v1.22.333.4444) eq '1.22.333.4444';
26print "ok $test\n"; ++$test;
27
28{
8058d7ab 29 use bytes;
3cb0bbe5 30 print "not " unless
31 sprintf("%v", v1.22.333.4444) eq '1.22.197.141.225.133.156';
32 print "ok $test\n"; ++$test;
33}