use SQL::Abstract::Test import => ['is_same_sql_bind'];
-plan tests => 15;
-
-use_ok('SQL::Abstract');
-
#LDNOTE: renamed all "bind" into "where" because that's what they are
-
my @handle_tests = (
#1
{
},
);
+
+plan tests => (1 + scalar(@handle_tests));
+
+use_ok('SQL::Abstract');
+
for (@handle_tests) {
local $" = ', ';
#print "creating a handle with args ($_->{args}): ";
use Test::More;
use SQL::Abstract::Test import => ['is_same_sql_bind'];
-plan tests => 72;
use SQL::Abstract;
},
);
-use Data::Dumper;
+
+plan tests => scalar(@tests) * 2;
for (@tests) {
local $"=', ';
use Test::Exception;
use SQL::Abstract::Test import => ['is_same_sql_bind'];
-plan tests => 18;
-
use SQL::Abstract;
# Make sure to test the examples, since having them break is somewhat
bind => [ $not_stringifiable ],
},
-
);
+
+plan tests => scalar(@handle_tests) + 1;
+
for my $case (@handle_tests) {
my $sql = SQL::Abstract->new;
my($stmt, @bind) = $sql->where($case->{where}, $case->{order});
use Test::More;
use SQL::Abstract::Test import => ['is_same_sql_bind'];
-plan tests => 5;
use SQL::Abstract;
},
);
+
+plan tests => scalar(@data);
+
# Note to self: I have no idea what this does anymore
# It looks like a cool fucking segment of code though!
# I just wish I remembered writing it... :-\
},
);
-my $sql = SQL::Abstract->new;
-my $sqlq = SQL::Abstract->new({quote_char => '`'});
plan tests => (scalar(@cases) * 2);
+my $sql = SQL::Abstract->new;
+my $sqlq = SQL::Abstract->new({quote_char => '`'});
+
for my $case( @cases){
is($sql->_order_by($case->{given}), $case->{expects});
is($sqlq->_order_by($case->{given}), $case->{expects_quoted});
use Test::More;\r
\r
use SQL::Abstract::Test import => ['is_same_sql_bind'];\r
-plan tests => 5;\r
\r
use SQL::Abstract;\r
\r
};\r
\r
\r
+plan tests => scalar(@tests);\r
\r
for (@tests) {\r
\r
use Test::More;\r
\r
use SQL::Abstract::Test import => ['is_same_sql_bind'];\r
-plan tests => 2;\r
\r
use SQL::Abstract;\r
\r
);\r
\r
\r
+plan tests => scalar(@tests);\r
+\r
for (@tests) {\r
\r
my($stmt, @bind) = $sqlmaker->where($_->{where}, $_->{order});\r