X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FSQL-Abstract.git;a=blobdiff_plain;f=t%2F05in_between.t;h=8c6828157eb8d228cce8c34418fc0af1429e3e7e;hp=816274153430c34da280d92a6774dd740240b41b;hb=df7b1db3fac6b264486bde43d4ef250035126885;hpb=de580bbd21ae31a62308b5dc8528a5f1f4cd13bb 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} ); } }