From: Peter Rabbitson Date: Thu, 4 Feb 2010 10:46:09 +0000 (+0000) Subject: Enhance/detabify X-Git-Tag: v1.70~135^2~1 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f8135ff3cf0718478067398ec50c71a891696a75;p=dbsrgits%2FSQL-Abstract.git Enhance/detabify --- diff --git a/t/10test.t b/t/10test.t index 1aa26f2..0d5e1de 100644 --- a/t/10test.t +++ b/t/10test.t @@ -19,7 +19,7 @@ if (not $author and not $ENV{SQLATEST_TESTER} and not $ENV{AUTOMATED_TESTING}) { my @sql_tests = ( - # WHERE condition - equal + # WHERE condition - equal { equal => 1, statements => [ @@ -582,34 +582,36 @@ my @sql_tests = ( ] }, { - equal => 0, - statements => [ - 'SELECT a,b,c FROM foo', - 'SELECT a,c,b FROM foo', - 'SELECT b,a,c FROM foo', - 'SELECT b,c,a FROM foo', - 'SELECT c,a,b FROM foo', - 'SELECT c,b,a FROM foo', - ] + equal => 0, + statements => [ + 'SELECT a,b,c FROM foo', + 'SELECT a,c,b FROM foo', + 'SELECT b,a,c FROM foo', + 'SELECT b,c,a FROM foo', + 'SELECT c,a,b FROM foo', + 'SELECT c,b,a FROM foo', + ], }, { - equal => 0, - statements => [ - 'SELECT count(*) FROM foo', - 'SELECT count(a) FROM foo', - 'SELECT count(1) FROM foo', - ] + equal => 0, + statements => [ + 'SELECT * FROM foo WHERE a IN (1,2,3)', + 'SELECT * FROM foo WHERE a IN (1,3,2)', + 'SELECT * FROM foo WHERE a IN (2,1,3)', + 'SELECT * FROM foo WHERE a IN (2,3,1)', + 'SELECT * FROM foo WHERE a IN (3,1,2)', + 'SELECT * FROM foo WHERE a IN (3,2,1)', + ] }, { - equal => 0, - statements => [ - 'SELECT * FROM foo WHERE a IN (1,2,3)', - 'SELECT * FROM foo WHERE a IN (1,3,2)', - 'SELECT * FROM foo WHERE a IN (2,1,3)', - 'SELECT * FROM foo WHERE a IN (2,3,1)', - 'SELECT * FROM foo WHERE a IN (3,1,2)', - 'SELECT * FROM foo WHERE a IN (3,2,1)', - ] + equal => 0, + statements => [ + 'SELECT count(*) FROM foo', + 'SELECT count(*) AS bar FROM foo', + 'SELECT count(*) AS "bar" FROM foo', + 'SELECT count(a) FROM foo', + 'SELECT count(1) FROM foo', + ] }, );