Skip to content

Commit

Permalink
[t/spec] deleted bogus syntax test
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.pugscode.org/pugs@22330 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information
moritz committed Sep 23, 2008
1 parent 1f244f2 commit 3ceaedb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions S02-whitespace_and_comments/minimal-whitespace.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 8;
plan 7;

# L<S03/Minimal whitespace DWIMmery/Whitespace is no longer allowed before>

Expand All @@ -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');
Expand Down

0 comments on commit 3ceaedb

Please sign in to comment.