[Bast-commits] r5285 - Devel-Declare/1.000/trunk/t
marcus at dev.catalyst.perl.org
marcus at dev.catalyst.perl.org
Fri Jan 2 21:35:13 GMT 2009
Author: marcus
Date: 2009-01-02 21:35:12 +0000 (Fri, 02 Jan 2009)
New Revision: 5285
Modified:
Devel-Declare/1.000/trunk/t/fail.t
Log:
Add test for unicode methods
Modified: Devel-Declare/1.000/trunk/t/fail.t
===================================================================
--- Devel-Declare/1.000/trunk/t/fail.t 2009-01-02 21:21:54 UTC (rev 5284)
+++ Devel-Declare/1.000/trunk/t/fail.t 2009-01-02 21:35:12 UTC (rev 5285)
@@ -15,8 +15,9 @@
};
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
More information about the Bast-commits
mailing list