Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merge the changed tests I forgot to check in
  • Loading branch information
TimToady committed Sep 27, 2015
1 parent 450b919 commit 4321092
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion S02-lexical-conventions/minimal-whitespace.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 9;
plan 13;

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

Expand Down Expand Up @@ -31,6 +31,21 @@ lives-ok { EVAL '$o .whatever(5)' },
lives-ok { EVAL '$o. whatever(5)' },
'whitespace *is* allowed after . before method';

throws-like { EVAL '42 i' },
X::Comp,
'whitespace is not allowed before i postfix';
throws-like { EVAL '42. i' },
X::Comp,
'whitespace is not allowed between . and i postfix';

my $o = 42;
throws-like { EVAL '$o ++' },
X::Comp,
'whitespace is not allowed before ++ postfix';
throws-like { EVAL '$o. ++' },
X::Obsolete,
'whitespace is not allowed between . and postfix';

lives-ok { EVAL 'my @rt80330; [+] @rt80330' },
'a [+] with whitespace works';
throws-like { EVAL 'my @rt80330; [+]@rt80330' },
Expand Down

0 comments on commit 4321092

Please sign in to comment.