From: Dagfinn Ilmari Mannsåker Date: Thu, 26 Dec 2013 21:28:27 +0000 (+0100) Subject: Actually use the descriptions in the test cases X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=df7b1db3fac6b264486bde43d4ef250035126885;p=scpubgit%2FQ-Branch.git Actually use the descriptions in the test cases --- diff --git a/t/05in_between.t b/t/05in_between.t index 8162741..8c68281 100644 --- a/t/05in_between.t +++ b/t/05in_between.t @@ -224,23 +224,25 @@ for my $case (@in_between_tests) { TODO: { local $TODO = $case->{todo} if $case->{todo}; local $SQL::Abstract::Test::parenthesis_significant = $case->{parenthesis_significant}; + my $label = $case->{test} || 'in-between test'; my $sql = SQL::Abstract->new ($case->{args} || {}); if (my $e = $case->{throws}) { - throws_ok { $sql->where($case->{where}) } $e; + throws_ok { $sql->where($case->{where}) } $e, "$label throws correctly"; } else { my ($stmt, @bind); warnings_are { ($stmt, @bind) = $sql->where($case->{where}); - } [], 'No warnings within in-between tests'; + } [], "$label gives no warnings"; is_same_sql_bind( $stmt, \@bind, $case->{stmt}, $case->{bind}, + "$label generates correct SQL and bind", ) || diag_where ( $case->{where} ); } }