Skip to content

Commit 9fdf8b7

Browse files
authored
Add location tests for the C++ regex parse-tree view
1 parent c51dcdd commit 9fdf8b7

6 files changed

Lines changed: 996 additions & 0 deletions

File tree

cpp/ql/test/library-tests/regex/RegexFlow.expected

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,16 @@ usedAsRegex_
7474
| test.cpp:400:19:400:35 | [[:alpha:]-z].* |
7575
| test.cpp:406:19:406:31 | [[:alpha].* |
7676
| test.cpp:415:19:415:88 | ^([[:alpha:]]+[[:digit:]]*[[:space:]]?)+([[:punct:]]\|[[:xdigit:]])+$ |
77+
| test.cpp:430:19:430:23 | a+b |
78+
| test.cpp:431:19:431:24 | \\s+ |
79+
| test.cpp:436:19:436:26 | a+b |
80+
| test.cpp:437:19:437:27 | \\s+$ |
81+
| test.cpp:438:19:438:37 | \\(([,\\w]+)+\\)$ |
82+
| test.cpp:442:19:442:28 | a+b |
83+
| test.cpp:446:20:446:25 | a+b |
84+
| test.cpp:447:20:447:28 | a+b |
85+
| test.cpp:459:19:459:25 | a+b |
86+
| test.cpp:460:19:460:28 | a+b |
7787
regexMatchedAgainst_
7888
| test.cpp:209:18:209:25 | (a+)+b | test.cpp:211:28:211:34 | subject |
7989
| test.cpp:209:18:209:25 | (a+)+b | test.cpp:212:29:212:35 | subject |

0 commit comments

Comments
 (0)