From 3398df44a42f608b21e2a5fd5050f853b7c8bd4c Mon Sep 17 00:00:00 2001 From: Victor Date: Thu, 20 Mar 2014 09:47:07 +0400 Subject: [PATCH] Failing test - It seems that PPI has problems when heredoc terminator is last in file and there is 0 or 1 newline after it (not more). --- t/ValuesAndExpressions/PreventSQLInjection.run | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/t/ValuesAndExpressions/PreventSQLInjection.run b/t/ValuesAndExpressions/PreventSQLInjection.run index 0cd7d0a..39e12af 100644 --- a/t/ValuesAndExpressions/PreventSQLInjection.run +++ b/t/ValuesAndExpressions/PreventSQLInjection.run @@ -131,6 +131,13 @@ my $heredoc = <<"HERE" FROM $table HERE +## name (GH-14) Heredoc when there are 0 or 1 newlines after terminator +## failures 0 +## cut + +my $heredoc = <<"SELECT".$x; + +SELECT ## name Single-quoted heredoc with multiple variables. ## failures 0 ## cut