Converted all test cases where the tests are queued in an array to calculate the...
[dbsrgits/SQL-Abstract.git] / t / 02where.t
index 60cbf84..85a0e8b 100644 (file)
@@ -6,8 +6,6 @@ use Test::More;
 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
@@ -196,9 +194,11 @@ my @handle_tests = (
        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});