Add strict/warnings test, adjust all offenders (wow, that was a lot)
[dbsrgits/DBIx-Class.git] / t / cdbi / max_min_value_of.t
CommitLineData
e60dc79f 1use strict;
4a233f30 2use warnings;
e60dc79f 3use Test::More;
4
5#----------------------------------------------------------------------
6# Test database failures
7#----------------------------------------------------------------------
8
50891152 9use lib 't/cdbi/testlib';
e60dc79f 10use Film;
11
12Film->create({
13 title => "Bad Taste",
14 numexplodingsheep => 10,
15});
16
17Film->create({
18 title => "Evil Alien Conquerers",
19 numexplodingsheep => 2,
20});
21
22is( Film->maximum_value_of("numexplodingsheep"), 10 );
23is( Film->minimum_value_of("numexplodingsheep"), 2 );
d9bd5195 24
25done_testing;