also barf on arrayref based order_by with the same problem
[scpubgit/Q-Branch.git] / t / 06order_by.t
index 7d1213e..e3b94f7 100644 (file)
@@ -134,6 +134,12 @@ throws_ok (
 );
 
 throws_ok (
+  sub { $sql->_order_by([ {-desc => 'colA', -asc => 'colB' } ]) },
+  qr/hash passed .+ must have exactly one key/,
+  'Undeterministic order exception',
+);
+
+throws_ok (
   sub { $sql->_order_by({-desc => [ qw/colA colB/ ], -asc => [ qw/colC colD/ ] }) },
   qr/hash passed .+ must have exactly one key/,
   'Undeterministic order exception',