Commit 55278dcc authored by Damien George's avatar Damien George
Browse files

tests: Add test for modure when regex has errors.

parent 8dead2a6
# test errors in regex
try:
import ure as re
except:
import re
def test_re(r):
try:
re.compile(r)
print("OK")
except: # uPy and CPy use different errors, so just ignore the type
print("Error")
test_re(r'?')
test_re(r'*')
test_re(r'+')
test_re(r')')
test_re(r'[')
test_re(r'([')
test_re(r'([)')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment