Permalink
Browse files

[t/spec] deleted bogus syntax test

git-svn-id: http://svn.pugscode.org/pugs@22330 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent 1f244f2 commit 3ceaedb3bd3293f4a90bebeebac9c382c51608b8 moritz committed Sep 23, 2008
Showing with 5 additions and 3 deletions.
  1. +5 −3 S02-whitespace_and_comments/minimal-whitespace.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 8;
+plan 7;
# L<S03/Minimal whitespace DWIMmery/Whitespace is no longer allowed before>
@@ -13,8 +13,10 @@ my %hash = {a => 1, b => 2};
eval_dies_ok('%hash <a>', 'hash with space before opening brackets does not work (1)');
eval_dies_ok('%hash {"a"}', 'hash with space before opening braces does not work (2)');
-sub code (Int $a) {2 * $a}
-eval_dies_ok('code (5)', 'sub call with space before opening parens does not work');
+# XXX this one is wrong, it's parsed as code( (5) )
+# STD.pm agrees on that.
+#sub code (Int $a) {2 * $a}
+#eval_dies_ok('code (5)', 'sub call with space before opening parens does not work');
class Thing {method whatever (Int $a) {3 * $a}}
eval_dies_ok('Thing .new', 'whitespace is not allowed before . after class name');

0 comments on commit 3ceaedb

Please sign in to comment.