Add Array->each_n.
[gitmo/Moose-Autobox.git] / t / 009_number.t
CommitLineData
f0f5341b 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6use Test::More tests => 4;
7
8BEGIN {
9 use_ok('Moose::Autobox');
10}
11
12use Moose::Autobox;
13
14is_deeply(
151->to(5),
16[ 1, 2, 3, 4, 5 ],
17'... got 1 to 5');
18
19is_deeply(
205->to(1),
21[ 5, 4, 3, 2, 1 ],
22'... got 5 to 1');
23
24is_deeply(
251->to(1),
26[ 1 ],
27'... got 1 to 1');
28