X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F88result_set_column.t;h=66169f3534706d36e9c1ab91a23a7f5653f143bf;hb=66521001058c038fdd23f9a0b304acac381d04e7;hp=67262f0833731f76d0cae77b2d47f3fb0ba3683d;hpb=5d1fc7dc2e7f2cd82068f3f2f5faca1851225ccf;p=dbsrgits%2FDBIx-Class.git diff --git a/t/88result_set_column.t b/t/88result_set_column.t index 67262f0..66169f3 100644 --- a/t/88result_set_column.t +++ b/t/88result_set_column.t @@ -8,10 +8,10 @@ use DBICTest; my $schema = DBICTest->init_schema(); -plan tests => 16; +plan tests => 18; my $cd; -my $rs = $cd = $schema->resultset("CD")->search({}); +my $rs = $cd = $schema->resultset("CD")->search({}, { order_by => 'cdid' }); my $rs_title = $rs->get_column('title'); my $rs_year = $rs->get_column('year'); @@ -29,6 +29,11 @@ is($rs_title->min, 'Caterwaulin\' Blues', "min okay for title"); cmp_ok($rs_year->sum, '==', 9996, "three artists returned"); +$rs_year->reset; +is($rs_year->next, 1999, "reset okay"); + +is($rs_year->first, 1999, "first okay"); + # test +select/+as for single column my $psrs = $schema->resultset('CD')->search({}, {