File: vec.t

package info (click to toggle)
libautobox-core-perl 1.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 328 kB
  • ctags: 161
  • sloc: perl: 567; makefile: 2
file content (12 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12

use Test::More qw(no_plan);
use strict;
use warnings;

use autobox::Core;

my $foo = '';

is $foo->vec(0, 32), vec($foo, 0, 32);  # 0x5065726C, 'Perl'
is $foo->vec(2, 16), vec($foo,  2, 16); # 0x5065, 'PerlPe'
is $foo->vec(3, 16), vec($foo,  3, 16); # 0x726C, 'PerlPerl'