X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06order_by.t;h=e3b94f704421bc63d9fbdff523b000f231515624;hb=52ca537edd320e55218997062451cc41bbc6eb80;hp=7d1213e9f88a7411048e6f7a333cae9b98f12159;hpb=70c57fc3babeb2f14b0bedc588ae90fb54ceeabe;p=scpubgit%2FQ-Branch.git diff --git a/t/06order_by.t b/t/06order_by.t index 7d1213e..e3b94f7 100644 --- a/t/06order_by.t +++ b/t/06order_by.t @@ -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',