Introduce GOVERNANCE document and empty RESOLUTIONS file.
[dbsrgits/DBIx-Class.git] / t / cdbi / max_min_value_of.t
CommitLineData
c0329273 1BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
83eef562 2use DBIx::Class::Optional::Dependencies -skip_all_without => 'cdbicompat';
3
e60dc79f 4use strict;
4a233f30 5use warnings;
83eef562 6
e60dc79f 7use Test::More;
8
9#----------------------------------------------------------------------
10# Test database failures
11#----------------------------------------------------------------------
12
50891152 13use lib 't/cdbi/testlib';
e60dc79f 14use Film;
15
16Film->create({
17 title => "Bad Taste",
18 numexplodingsheep => 10,
19});
20
21Film->create({
22 title => "Evil Alien Conquerers",
23 numexplodingsheep => 2,
24});
25
26is( Film->maximum_value_of("numexplodingsheep"), 10 );
27is( Film->minimum_value_of("numexplodingsheep"), 2 );
d9bd5195 28
29done_testing;