sognat/sympy — comment on commit 2ce7cb33fcfecc028257062cbd8489bb782644b1
File: sympy/core/tests/test_sympify.py line 172
By mattpap:

Add more tests that verify that this works with nested parenthesis, e.g.:

```python
In [3]: sympify("(y*(x + 1) + 1)!!")
Out[3]: (y⋅(x + 1) + 1)!!

In [4]: sympify("(1 + y*(x + 1))!!")
Out[4]: (y⋅(x + 1) + 1)!!
```
Also add a `raises()`-style tests that verifies that e.g.:

```python
In [7]: sympify("+!!")
(...)
SympifyError: SympifyError: "could not parse u'+!!'"
```
gives exception (not double factorial of `+` symbol).