Skip to content

Commit c455483

Browse files
committed
Python: merge test.py into unittests.py
1 parent 3c647c6 commit c455483

File tree

2 files changed

+11
-12
lines changed

2 files changed

+11
-12
lines changed

python/ql/test/library-tests/regexparser/test.py

Lines changed: 0 additions & 12 deletions
This file was deleted.

python/ql/test/library-tests/regexparser/unittests.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,14 @@
77
# Treatment of line breaks
88
re.compile(r'(?:.|\n)*b') # No ReDoS.
99
re.compile(r'(?:.|\n)*b', re.DOTALL) # Has ReDoS.
10+
11+
# minimal example constructed by @erik-krogh
12+
baz = re.compile(r'\+0')
13+
14+
# exerpts from LGTM.com
15+
re.compile(r'\+0x')
16+
re.compile(r'\+0x.*')
17+
re.compile(r'+\-0+\.')
18+
re.compile('\s+\+0x[0-9]+')
19+
re.compile(r'\+0000 .*')
20+
re.compile('\#[0-9]+ 0x[0-9]')

0 commit comments

Comments
 (0)