Fix and simplify datetime method selection
[dbsrgits/DBIx-Class.git] / t / search / select_chains_unbalanced.t
index 99dcc00..471cae2 100644 (file)
@@ -1,13 +1,13 @@
+BEGIN { do "./t/lib/ANFANG.pm" or die ( $@ || $! ) }
+
 use strict;
 use warnings;
 
 use Test::More;
 use Test::Exception;
 
-use lib qw(t/lib);
-use DBIC::SqlMakerTest;
-use DBICTest;
 
+use DBICTest ':DiffSQL';
 
 my $schema = DBICTest->init_schema();
 
@@ -42,7 +42,7 @@ my @chain = (
           me.cdid,
           DISTINCT(foo, bar),
           me.genreid,
-          (SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 )),
+          (SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 ))
         FROM cd me'
     => [qw/title cd_id foo bar genreid name rank/],
 
@@ -56,7 +56,7 @@ my @chain = (
           DISTINCT(foo, bar),
           me.genreid,
           (SELECT me.name, me.rank FROM artist me WHERE ( artistid 1 )),
-          COUNT( me.cdid ) AS cnt,
+          COUNT( me.cdid ) AS cnt
         FROM cd me'
     => [qw/title len cd_id foo bar genreid name rank cnt/],
   {