summaryrefslogtreecommitdiff
path: root/unitTests.py
Commit message (Collapse)AuthorAgeFilesLines
* refactor tests into tests directory (#130)Kyle Lahnakoski2019-10-211-5225/+0
|
* Remove unused imports (#147)Jon Dufresne2019-10-191-2/+2
| | | | | Discovered using the command: flake8 --select F401 .
* Fix PrecededBy bug, issue #127Paul McGuire2019-10-131-1/+18
|
* Merge unittest enhancements from branchPaul McGuire2019-09-271-189/+229
|
* More Py2->Py3 cleanup, roll forward fix to ParserElement.__eq__ptmcg2019-09-251-17/+17
|
* Propagate setDefaultWhitespaceChars to helper expressions defined in ↵Paul McGuire2019-09-021-3/+112
| | | | pyparsing module
* Fixed bug when ZeroOrMore parses no matching exprs, did not include a named ↵Paul McGuire2019-08-261-0/+68
| | | | result containing []
* Additional problematic characters when generating re's in Word added to unit ↵ptmcg2019-08-221-9/+11
| | | | test
* Fix minor bug in creating regex range for single character; add unit testsPaul McGuire2019-08-201-0/+70
|
* Minor unit test cleanupsPaul McGuire2019-08-181-5/+11
|
* More Py2 compatibility scrubbing in unit tests, and migration ZeroOrMore to ↵ptmcg2019-08-111-337/+327
| | | | [...] notation
* Remove Py2 compatibility code from unit testsPaul McGuire2019-08-101-193/+127
|
* Rework __diag__ and __compat__ to be actual classes instead of just ↵Paul McGuire2019-08-101-47/+100
| | | | namespaces, to add helpful behavior and methods
* Fixed bug in indentedBlock with a parser using two different types of nested ↵Paul McGuire2019-08-091-2/+37
| | | | indented blocks with different indent values, but sharing the same indent stack. Raised in comments on #87.
* Remove deprecated methods and names; disabled ↵Paul McGuire2019-08-051-13/+14
| | | | __compat__.collect_all_And_tokens; correct doctests; more minor whitespace cleanup
* First pass removing Py2 cross-compatibility featuresPaul McGuire2019-08-051-111/+0
|
* Improved handling of '-' ErrorStop's when used within EachPaul McGuire2019-08-041-0/+25
|
* fourFn.py updates - handle leading '+' and '-' unary signs for parenthesized ↵Paul McGuire2019-08-041-5/+4
| | | | expressions; and real numbers with no leading digit before the decimal
* Update fourFn.py to handle functions that take multiple args, and nested ↵Paul McGuire2019-08-031-22/+47
| | | | functions
* Typo and whitespace cleanupPaul McGuire2019-08-031-363/+364
|
* Add unit test for #103; also make CHANGES blurb and HowToUse notes a little ↵pyparsing_2.4.2a1pyparsing_2.4.1.1Paul McGuire2019-07-241-0/+28
| | | | clearer
* Version 2.4.2a1 - changing [...] notation to ZeroOrMore, not OneOrMorePaul McGuire2019-07-231-2/+49
|
* Fix latent bug if adding a parse action after having cleared parse actions ↵pyparsing_2.4.1Paul McGuire2019-07-201-0/+4
| | | | with None
* Cleaned up CHANGES to accurately describe the pre/post 2.3.0 bugfix ↵Paul McGuire2019-07-091-1/+97
| | | | behavior; added file argument to runTests; added conditionAsParseAction helper
* sys.write does not take keyword argsPaul McGuire2019-07-081-2/+2
|
* Add __diag__ namespace to enable diagnostic switches; add asKeyword optional ↵Paul McGuire2019-07-081-6/+41
| | | | arg for oneOf to emit Keyword expressions instead of Literals
* Some code cleanup in unitTests.pyPaul McGuire2019-07-071-109/+177
|
* Run *all* the unit tests!Paul McGuire2019-07-061-1/+0
|
* Add support for multiple '...' skips in a single expression; `_skippped` ↵Paul McGuire2019-07-061-13/+25
| | | | results name will always return a list of skipped items
* Cleanup unit tests for SkipTo expressions, especially using '...'Paul McGuire2019-07-051-31/+47
|
* Add support for "(expr | ...)" as a form of "on-error, skip" notationptmcg2019-07-051-3/+16
|
* Further mods to `Forward.__str__` to possibly address memory issues reported ↵ptmcg2019-07-051-1/+2
| | | | in #85 and #91, and also does not stomp on user-defined expression names
* Fix numeric unit tests to be Py2-friendlyptmcg2019-07-041-29/+47
|
* Wrap expressions using ... in unitTests.py with eval() so that Py2 won't ↵Paul McGuire2019-07-041-7/+8
| | | | complain about syntax
* Add support for ... as short cut for SkipTo in And, and for repetition as ↵Paul McGuire2019-07-031-3/+43
| | | | OneOrMore and ZeroOrMore; fix PY2 test bug in unitTests.py
* Issue #93 - interaction of Or and addCondition sometimes selects alternative ↵Paul McGuire2019-07-021-1/+17
| | | | that is not the longest
* Fix up changes to parse reals without leading digits before the decimal, and ↵Paul McGuire2019-06-291-0/+87
| | | | add unit tests
* Add support for expr.setParseAction(None) to clear all parse actionsPaul McGuire2019-06-291-0/+14
|
* Fix issue #87, regression in indentedBlockPaul McGuire2019-06-291-3/+120
|
* Improved support for "python setup.py test"Paul McGuire2019-04-071-1/+5
|
* Fixed dict structure in makeHTMLTags expressions, and added tag_body ↵Paul McGuire2019-04-061-14/+27
| | | | attribute to the generated start expression giving easy access to a SkipTo(closeTag) that will parse the tag's body text; some code cleanup and removed duplication among examples
* Fix tests for Py2 when using explainPaul McGuire2019-04-021-0/+24
|
* Remove disabling of tests for Py2 when using explainPaul McGuire2019-04-011-8/+0
|
* General code cleanup; have unit test module exit(0 or 1) depending on test ↵Paul McGuire2019-04-011-3/+5
| | | | success, to trigger CI pass/fail; fix bug that crept into withAttribute; minor performance tweaks in Regex and Word
* Merge remote-tracking branch 'origin/master'Paul McGuire2019-03-301-3/+84
|\ | | | | | | | | # Conflicts: # pyparsing.py
| * Fix cases where an indentedBlock partially parsing will cause all other ↵TMiguelT2019-03-121-0/+76
| | | | | | | | | | | | | | correct indentedBlocks to fail (#75) * Add failing test for indentedBlock * Simplify fix by storing a backup stack
| * Descriptive names for Forward expressions (#71)Eric Wald2019-03-101-3/+8
| | | | | | Resolves the infinite recursion potential by setting a temporary name during resolution.
* | Add __compat__.collect_all_And_tokens to address version incompatibility, ↵Paul McGuire2019-03-301-0/+29
|/ | | | and conditionalize API-breaking behavior (#69)
* Update examples and unit tests to more preferred coding styles, imports for ↵ptmcg2019-01-301-30/+29
| | | | pyparsing_common as ppc and pyparsing_unicode as ppu
* Disable explain() tests if running in Py2ptmcg2019-01-091-0/+8
|