X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F001_basic.t;h=fc0f00b087f692749cb413e46711bcdea83ea2c2;hb=refs%2Ftags%2F0_02;hp=beb218c4a455b7be9154e0f17c8ebb7365599838;hpb=f6e003cc1ce0661451c5334ecbc044121cda2439;p=gitmo%2FMoose-Autobox.git diff --git a/t/001_basic.t b/t/001_basic.t index beb218c..fc0f00b 100644 --- a/t/001_basic.t +++ b/t/001_basic.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 55; +use Test::More tests => 56; BEGIN { use_ok('Moose::Autobox'); @@ -93,6 +93,12 @@ is_deeply($a, [ 4, 2, 6, 78, 101, 2 ], '... original value is now changed'); is($a->shift(), 4, '... got the right unshift-ed value'); is_deeply($a, [ 2, 6, 78, 101, 2 ], '... original value is now changed'); + +is_deeply( +$a->slice([ 1, 2, 4 ]), +[ 6, 78, 2 ], +'... got the right sliced value'); + is_deeply( $a->unshift(10), [ 10, 2, 6, 78, 101, 2 ],