File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -96,6 +96,12 @@ class OperatorWhitespaceCheckTest extends CheckTestCase<OperatorWhitespaceCheckT
9696 assertNoMsg (check , BITWISE_NEG );
9797 assertMsg (check , BITWISE_NEG_WRONG , MSG_UNARY_NONE_BITWISE );
9898
99+ check .unaryOpPolicy = NONE ;
100+ assertNoMsg (check , UNARY_NO_WHITESPACE );
101+ assertMsg (check , UNARY_INNER_WHITESPACE , MSG_UNARY_NONE );
102+ assertNoMsg (check , BITWISE_NEG );
103+ assertMsg (check , BITWISE_NEG_WRONG , MSG_UNARY_NONE_BITWISE );
104+
99105 check .unaryOpPolicy = INNER ;
100106 assertMsg (check , UNARY_NO_WHITESPACE , MSG_UNARY_INNER );
101107 assertNoMsg (check , UNARY_INNER_WHITESPACE );
@@ -398,8 +404,10 @@ abstract OperatorWhitespaceCheckTests(String) to String {
398404 class Test {
399405 function test() {
400406 if (!test) return a++;
407+ if ( !test ) return a++;
401408 ++a;
402409 return !(a++);
410+ return !( a++ );
403411 }
404412 }" ;
405413
You can’t perform that action at this time.
0 commit comments