diff options
| author | Paul McGuire <ptmcg@users.noreply.github.com> | 2018-10-04 13:41:47 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-04 13:41:47 -0500 |
| commit | 6c6d600683d250a37fe50babde321028fecbbf9d (patch) | |
| tree | 37e26a9883795c596f0f636b447a85e408557c9b | |
| parent | a3f0595b570a2e8e69c68afea6fdff810c7134a8 (diff) | |
| download | pyparsing-git-6c6d600683d250a37fe50babde321028fecbbf9d.tar.gz | |
Bad example for beginner users
| -rw-r--r-- | simple_unit_tests.py | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/simple_unit_tests.py b/simple_unit_tests.py index b2a6dc9..6ccb536 100644 --- a/simple_unit_tests.py +++ b/simple_unit_tests.py @@ -125,12 +125,6 @@ class TestCaselessLiteral(PyparsingExpressionTestCase): text = "red Green BluE blue GREEN green rEd", expected_list = ['RED', 'GREEN', 'BLUE', 'BLUE', 'GREEN', 'GREEN', 'RED'], ), - PpTestSpec( - desc = "Match colors, converting to consistent case - use generator to define expresssions for MatchFirst", - expr = pp.OneOrMore(pp.MatchFirst(pp.CaselessLiteral(color) for color in "RED GREEN BLUE".split())), - text = "red Green BluE blue GREEN green rEd", - expected_list = ['RED', 'GREEN', 'BLUE', 'BLUE', 'GREEN', 'GREEN', 'RED'], - ), ] class TestWord(PyparsingExpressionTestCase): |
