X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F06order_by.t;h=e3b94f704421bc63d9fbdff523b000f231515624;hb=dd1d0dbf25425dbd05193ec6d5453e9170eb832c;hp=1095862f3ffb73a2db91fa32aa8f52a6371c5957;hpb=4325df6ab1398d1edf742f5151be7ee47eb76e7e;p=dbsrgits%2FSQL-Abstract.git diff --git a/t/06order_by.t b/t/06order_by.t index 1095862..e3b94f7 100644 --- a/t/06order_by.t +++ b/t/06order_by.t @@ -127,12 +127,6 @@ for my $case (@cases) { ); } -# meh - -done_testing; - -exit; - throws_ok ( sub { $sql->_order_by({-desc => 'colA', -asc => 'colB' }) }, qr/hash passed .+ must have exactly one key/, @@ -140,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',