From: Jason Kohles Date: Mon, 16 Feb 2009 22:33:25 +0000 (-0500) Subject: This used to fail with old V::M, add it to make sure it behaves under PP X-Git-Tag: 0.21~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c92da19f334b818c13024f33f19a9e349f1ac5bd;p=p5sagit%2Fnamespace-clean.git This used to fail with old V::M, add it to make sure it behaves under PP --- diff --git a/t/05-syntax-error.t b/t/05-syntax-error.t new file mode 100644 index 0000000..ee7178b --- /dev/null +++ b/t/05-syntax-error.t @@ -0,0 +1,10 @@ +#!/usr/bin/env perl +use warnings; +use strict; + +use FindBin; +use lib "$FindBin::Bin/lib"; +use Test::More tests => 1; + +eval { require "SyntaxError.pm" }; +like( $@, qr/\Asyntax error at /, 'Syntax Error reported correctly' ); diff --git a/t/lib/SyntaxError.pm b/t/lib/SyntaxError.pm new file mode 100644 index 0000000..60a937a --- /dev/null +++ b/t/lib/SyntaxError.pm @@ -0,0 +1,4 @@ +package SyntaxError; +use namespace::clean; +sub foo { if } +1;