test for issue #7.

You can just return the result of the expression.

  return op == '+' || op == '|' || op == '&';