X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F05in_between.t;fp=t%2F05in_between.t;h=11119984faa88d2cb607122f1be6828fa396f3f5;hb=db8e4588960f73fc9da7994bc3021821b3b17334;hp=832b7a1ec83765ba33a37cc7b86e7a54dd08cb50;hpb=7d27345242d34aa0ad38e3a5f54d0bd09b558d32;p=scpubgit%2FQ-Branch.git diff --git a/t/05in_between.t b/t/05in_between.t index 832b7a1..1111998 100644 --- a/t/05in_between.t +++ b/t/05in_between.t @@ -3,7 +3,7 @@ use warnings; use Test::More; use Test::Warn; use Test::Exception; -use SQL::Abstract::Test import => [qw(is_same_sql_bind diag_where)]; +use SQL::Abstract::Test import => [qw(is_same_sql_bind diag_where dumper)]; use SQL::Abstract; @@ -277,7 +277,9 @@ for my $case (@in_between_tests) { my $sql = SQL::Abstract->new ($case->{args} || {}); if (my $e = $case->{throws}) { - throws_ok { $sql->where($case->{where}) } $e, "$label throws correctly"; + my $stmt; + throws_ok { ($stmt) = $sql->where($case->{where}) } $e, "$label throws correctly" + or diag dumper ({ where => $case->{where}, result => $stmt }); } else { my ($stmt, @bind);