File: 012_first_last.t

package info (click to toggle)
libmoose-autobox-perl 0.15-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 224 kB
  • ctags: 124
  • sloc: perl: 1,057; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 271 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use strict;
use warnings;

use Test::More tests => 5;

require_ok('Moose::Autobox');

use Moose::Autobox;

my $string = 'foo';
my $list = ['foo', 'bar'];

is $string->first, 'foo';
is $string->last, 'foo';

is $list->first, 'foo';
is $list->last, 'bar';