summaryrefslogtreecommitdiff
path: root/tests/test_simple_unit.py
diff options
context:
space:
mode:
authorMarcin Jaworski <mrjaworski@gmail.com>2020-05-03 19:15:23 +0200
committerGitHub <noreply@github.com>2020-05-03 12:15:23 -0500
commit827f615719ae83800e4252593da5b9d05a97e11a (patch)
treec43a0088378fb0bf2b0381788394f21461949701 /tests/test_simple_unit.py
parent39934574db9796f27397b9f76a112c2466bd1a69 (diff)
downloadpyparsing-git-827f615719ae83800e4252593da5b9d05a97e11a.tar.gz
Pop counter token and return rest instead of dropping all tokens in countedArray (#209)
* Pop counter token and return rest instead of dropping all tokens * Include only named results from intExpr in countedArray results * Remove internal Group from countedArray * Fix operator precedence * Update countedArray tests
Diffstat (limited to 'tests/test_simple_unit.py')
-rw-r--r--tests/test_simple_unit.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_simple_unit.py b/tests/test_simple_unit.py
index 41c4b25..15edc33 100644
--- a/tests/test_simple_unit.py
+++ b/tests/test_simple_unit.py
@@ -503,7 +503,7 @@ class TestCommonHelperExpressions(PyparsingExpressionTestCase):
),
PpTestSpec(
desc="A counted array of words",
- expr=pp.countedArray(pp.Word("ab"))[...],
+ expr=pp.Group(pp.countedArray(pp.Word("ab")))[...],
text="2 aaa bbb 0 3 abab bbaa abbab",
expected_list=[["aaa", "bbb"], [], ["abab", "bbaa", "abbab"]],
),