summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorptmcg <ptmcg@austin.rr.com>2022-11-06 18:14:20 -0600
committerptmcg <ptmcg@austin.rr.com>2022-11-06 18:14:20 -0600
commite6c7783b2e129e29165da2882803581e6316d3b2 (patch)
tree27d949c1270ddc9ad19081cdb5a1d6e62deee381 /tests
parent8309b8a942043dfe28c7a4091264e7298700d050 (diff)
downloadpyparsing-git-e6c7783b2e129e29165da2882803581e6316d3b2.tar.gz
Add docs that `expr * ...` is a valid alternative to `ZeroOrMore(expr)` (Issue #445)
Diffstat (limited to 'tests')
-rw-r--r--tests/test_unit.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_unit.py b/tests/test_unit.py
index ae9591e..b50117b 100644
--- a/tests/test_unit.py
+++ b/tests/test_unit.py
@@ -1701,6 +1701,7 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase):
exprs = [
word[...] + num,
+ word * ... + num,
word[0, ...] + num,
word[1, ...] + num,
word[2, ...] + num,
@@ -1711,6 +1712,7 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase):
expected_res = [
r"([abcd]+ )*\d+",
r"([abcd]+ )*\d+",
+ r"([abcd]+ )*\d+",
r"([abcd]+ )+\d+",
r"([abcd]+ ){2,}\d+",
r"([abcd]+ ){0,3}\d+",