From: Marcus Ramberg Date: Fri, 2 Jan 2009 21:35:12 +0000 (+0000) Subject: Add test for unicode methods X-Git-Tag: 0.005000~22 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=6cd03fcae0b0a2929031851db7292dda8e7e6b0a;hp=390ce4e811404cc9a8ec4dc55e62eff960350ce7;p=p5sagit%2FDevel-Declare.git Add test for unicode methods --- diff --git a/t/fail.t b/t/fail.t index 3e8cc4a..2908845 100644 --- a/t/fail.t +++ b/t/fail.t @@ -15,8 +15,9 @@ TODO: { }; TODO: { - local $TODO='method does not throw proper errors for bad parens yet'; + local $TODO='method does not disallow invalid sub names'; eval 'method 1main() { return "foo" }','Sub starting with a number'; like($@,qr/Illegal\sdeclaration\sof\sanonymous\ssubroutine/); - + eval 'method møø() { return "foo" }','Sub with unicode'; + like($@,qr/Illegal\sdeclaration\sof\ssubroutine\smain\:\:m/); }; \ No newline at end of file