X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fcount%2Fin_subquery.t;h=765815d9fd46b13b668bf5ef881b37757fb77cc2;hb=6c7ca96253b07f8ac9b6940ac35368d25ed3b139;hp=1275c1e427804e7246f10abcb86bf593f096c38a;hpb=ff1393c7524889fbd5dd7f9b69871ec419fcd745;p=dbsrgits%2FDBIx-Class.git diff --git a/t/count/in_subquery.t b/t/count/in_subquery.t index 1275c1e..765815d 100644 --- a/t/count/in_subquery.t +++ b/t/count/in_subquery.t @@ -1,17 +1,12 @@ -#!/usr/bin/perl +BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) } use strict; use warnings; -use Data::Dumper; - use Test::More; -plan ( tests => 1 ); -use lib qw(t/lib); use DBICTest; -use DBIC::SqlMakerTest; my $schema = DBICTest->init_schema(); @@ -24,3 +19,5 @@ my $schema = DBICTest->init_schema(); my $subsel_rs = $schema->resultset("CD")->search( { cdid => { IN => $squery } } ); is($subsel_rs->count, $rs->count, 'Subselect on PK got the same row count'); } + +done_testing;