From: Arthur Axel "fREW" Schmidt Date: Fri, 3 Jul 2009 18:43:17 +0000 (+0000) Subject: Add non-equality tests for ordered lists X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=9a5b64c96734c3488495306c70cde7a3541bd09f;p=scpubgit%2FQ-Branch.git Add non-equality tests for ordered lists --- diff --git a/t/10test.t b/t/10test.t index 11c3705..59b8454 100644 --- a/t/10test.t +++ b/t/10test.t @@ -548,6 +548,28 @@ my @sql_tests = ( q/SELECT * FROM (SELECT * FROM bar WHERE ((b = 1) AND (c = 10))) AS foo WHERE (a = 2)/, ] }, + { + 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 * 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)', + ] + }, ); my @bind_tests = (