use_ok stinks; just load the library
[gitmo/Moose-Autobox.git] / t / 009_number.t
CommitLineData
f0f5341b 1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
171cd606 6use Test::More tests => 3;
f0f5341b 7
8use Moose::Autobox;
9
10is_deeply(
111->to(5),
12[ 1, 2, 3, 4, 5 ],
13'... got 1 to 5');
14
15is_deeply(
165->to(1),
17[ 5, 4, 3, 2, 1 ],
18'... got 5 to 1');
19
20is_deeply(
211->to(1),
22[ 1 ],
23'... got 1 to 1');
24