Skip to content

Commit aa64390

Browse files
committed
Python: add more tests
1 parent f02d281 commit aa64390

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@
6767
' and [this] is another test'
6868
)
6969

70+
# multiple parts of different kinds
71+
re.compile( # $ location=1:2 SPURIOUS:location=1:23 location=1:50 location=1:81 MISSING:location=1:28 location=2:11 location=3:8
72+
'[this] is a test' ''' and [this] is another test'''
73+
br""" and [this] is yet another test"""
74+
r' and [this] is one more'
75+
)
76+
7077
# actual multiline string
7178
re.compile( # $ SPURIOUS:location=1:6 location=1:27 MISSING:location=2:1 location=3:5
7279
r'''

0 commit comments

Comments
 (0)