From 77e04d5d7baf432ba6419f0a8b38161de1c76bec Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 31 Jan 2021 20:33:09 -0300 Subject: Fix unexpected token after subvalue raising wrong --- testing/test_regress.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 testing/test_regress.py (limited to 'testing/test_regress.py') diff --git a/testing/test_regress.py b/testing/test_regress.py new file mode 100644 index 0000000..2f3ea7d --- /dev/null +++ b/testing/test_regress.py @@ -0,0 +1,11 @@ +# Bugs found + +import re + +import abdl + +import pytest + +def test_unexpected_after_subvalue(): + with pytest.raises(abdl.exceptions.PatternError): + abdl.compile("();") -- cgit 1.4.1