Commit | Line | Data |
3cb0bbe5 |
1 | #!./perl |
2 | |
3 | BEGIN { |
4 | chdir 't' if -d 't'; |
5 | unshift @INC, "../lib"; |
6 | } |
7 | |
8 | print "1..6\n"; |
9 | |
10 | my $test = 1; |
11 | |
12 | use v5.5.640; |
13 | require v5.5.640; |
14 | print "ok $test\n"; ++$test; |
15 | |
16 | print "not " unless v1.20.300.4000 eq "\x{1}\x{14}\x{12c}\x{fa0}"; |
17 | print "ok $test\n"; ++$test; |
18 | |
19 | print "not " unless v1.20.300.4000 > 1.0203039 and v1.20.300.4000 < 1.0203041; |
20 | print "ok $test\n"; ++$test; |
21 | |
22 | print "not " unless sprintf("%v", "Perl") eq '80.101.114.108'; |
23 | print "ok $test\n"; ++$test; |
24 | |
25 | print "not " unless sprintf("%v", v1.22.333.4444) eq '1.22.333.4444'; |
26 | print "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 | } |