From: Dagfinn Ilmari Mannsåker Date: Fri, 3 Jan 2014 15:03:46 +0000 (+0100) Subject: Diag input and output for unexpected success X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=db8e4588960f73fc9da7994bc3021821b3b17334;p=scpubgit%2FQ-Branch.git Diag input and output for unexpected success --- 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);