remove obsolete thing that never worked
[scpubgit/Q-Branch.git] / t / 07subqueries.t
index f14738a..7d5fbd4 100644 (file)
@@ -1,5 +1,3 @@
-#!/usr/bin/perl
-
 use strict;
 use warnings;
 use Test::More;
@@ -8,6 +6,15 @@ use SQL::Abstract::Test import => ['is_same_sql_bind'];
 
 use SQL::Abstract;
 
+#### WARNING ####
+#
+# -nest has been undocumented on purpose, but is still supported for the
+# foreseable future. Do not rip out the -nest tests before speaking to
+# someone on the DBIC mailing list or in irc.perl.org#dbix-class
+#
+#################
+
+
 my $sql = SQL::Abstract->new;
 
 my (@tests, $sub_stmt, @sub_bind, $where);
@@ -27,7 +34,7 @@ push @tests, {
 
 #2
 ($sub_stmt, @sub_bind)
-     = $sql->select("t1", "c1", {c2 => {"<" => 100}, 
+     = $sql->select("t1", "c1", {c2 => {"<" => 100},
                                  c3 => {-like => "foo%"}});
 $where = {
     foo => 1234,
@@ -40,7 +47,7 @@ push @tests, {
 };
 
 #3
-($sub_stmt, @sub_bind) 
+($sub_stmt, @sub_bind)
      = $sql->select("t1", "*", {c1 => 1, c2 => \"> t0.c0"});
 $where = {
     foo                  => 1234,
@@ -64,7 +71,7 @@ push @tests, {
 
 
 #5
-($sub_stmt, @sub_bind) 
+($sub_stmt, @sub_bind)
   = $sql->where({age => [{"<" => 10}, {">" => 20}]});
 $sub_stmt =~ s/^ where //i; # don't want "WHERE" in the subclause
 $where = {
@@ -90,16 +97,10 @@ push @tests, {
   bind => [100, "foo%", 1234],
 };
 
-
-plan tests => scalar(@tests);
-
 for (@tests) {
 
   my($stmt, @bind) = $sql->where($_->{where}, $_->{order});
   is_same_sql_bind($stmt, \@bind, $_->{stmt}, $_->{bind});
 }
 
-
-
-
-
+done_testing;