diff options
| author | Damien George | 2017-10-05 11:32:55 +1100 |
|---|---|---|
| committer | Damien George | 2017-10-05 11:33:49 +1100 |
| commit | 98dd126e9818309e4ec9b561e7b6b9f7fa039cb9 (patch) | |
| tree | 63077c5302d9a956f2bbf6e501cc57d264b2764d /tests/extmod | |
| parent | 8c7db42ee3d6e47e4a58e4cb573dc1a30c96fa32 (diff) | |
tests/extmod: Add test for '-' in character class in regex.
Diffstat (limited to 'tests/extmod')
| -rw-r--r-- | tests/extmod/ure1.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/extmod/ure1.py b/tests/extmod/ure1.py index 6075990fc..54471ed4f 100644 --- a/tests/extmod/ure1.py +++ b/tests/extmod/ure1.py @@ -48,7 +48,12 @@ m = r.match("d") print(m.group(0)) m = r.match("A") print(m.group(0)) +print("===") +# '-' character within character class block +print(re.match("[-a]+", "-a]d").group(0)) +print(re.match("[a-]+", "-a]d").group(0)) +print("===") r = re.compile("o+") m = r.search("foobar") |
