summaryrefslogtreecommitdiff
path: root/src/unitTests.py
Commit message (Collapse)AuthorAgeFilesLines
* Move src to rootCengiz Kaygusuz2017-11-201-3675/+0
|
* Add minor enht for infixNotation, to accept a sequence of parse actions at ↵Paul McGuire2017-03-061-1/+70
| | | | each precedence level
* Fix deprecated use of '\' as described in https://bugs.python.org/issue27364 ↵Paul McGuire2017-02-281-3/+3
| | | | (Deprecated in Python 3.6, will become SyntaxError in a future release)
* Fixed bug in col, which allowed simplification of LineStart down to minimal ↵Paul McGuire2016-10-061-2/+38
| | | | implementation
* Fixed behavior of LineStart; added AutoReset to other unit tests that modify ↵Paul McGuire2016-10-041-23/+82
| | | | global state in pyparsing; also, disable output buffering in unit tests when specific test classes are given to build the test suite
* Fix all bare 'except:' statements in pyparsing; add more 'n-or-more' unit testsPaul McGuire2016-10-021-1/+6
|
* Fix bug in ZeroOrMore results name reportingPaul McGuire2016-09-281-0/+15
|
* Remove all uses of 'eval'Paul McGuire2016-09-151-4/+9
|
* Minor changes to unitTests.pyPaul McGuire2016-09-151-4/+1
|
* Add tests of sci_realPaul McGuire2016-09-111-0/+8
|
* Cleanup/notes in prep for 2.1.9 releasePaul McGuire2016-09-101-0/+8
|
* Simpler API to AutoReset context manager for testingPaul McGuire2016-09-091-25/+29
|
* Minor rework to unitTest - suppresses test output unless there is an exceptionPaul McGuire2016-09-091-23/+41
|
* Fix Py3 bug in ParseResults.getName; fixed bug in Keyword and ↵Paul McGuire2016-09-081-1/+64
| | | | CaselessKeyword when using setDefaultKeywordChars.
* Copied upcaseTokens and downcaseTokens to pyparsing_common; renamed ↵Paul McGuire2016-08-261-0/+10
| | | | pyparsing_common's signedInteger and sciReal to signed_integer and sci_real
* Added CloseMatch classPaul McGuire2016-08-171-0/+28
|
* Simplified merging ParseResults from expressions in an Each; also fixed ↵Paul McGuire2016-08-131-0/+44
| | | | class hierarchy for OneOrMore vs. ZeroOrMore, which was causing ZeroOrMore expressions to be treated as required expressions in an Each
* Add limit=n args to extract_stack and extract_tb calls, to minimize scanning ↵Paul McGuire2016-08-121-0/+52
| | | | through full call stack - trying to address UnicodeDecodeError exceptions from loading in more code than we need.
* Fixed bug in ParserElement.inlineLiteralsUsing, causing infinite loop with ↵Paul McGuire2016-08-111-0/+49
| | | | | Suppress; added AutoReset context manager class to unit tests, for saving/resetting global state when tests need to change globals
* oneOf test cleanupPaul McGuire2016-08-111-5/+5
|
* Add support for all iterables (sets, generators, etc.) to oneOf and ↵Paul McGuire2016-08-111-0/+18
| | | | ParseExpression
* Fix regression when using packrat parsing and raising ParseSyntaxException ↵Paul McGuire2016-08-091-0/+18
| | | | in And._ErrorStop.
* Fixed bug in upcaseTokens and downcaseTokens introduced in 2.1.5, when the ↵Paul McGuire2016-08-051-0/+5
| | | | parse action was used in conjunction with results names
* Rename pyparsing_common's "numeric" and "number" expressions to "number" and ↵Paul McGuire2016-08-051-3/+3
| | | | "fnumber", to better indicate which expression forces conversion to float (that is fnumber)
* Typo in Jython-specific unit testPaul McGuire2016-07-271-1/+1
|
* Typo in Jython-specific unit testPaul McGuire2016-07-271-1/+1
|
* Tweak unicode ranges for Jython 2.7.0 compatibilityPaul McGuire2016-07-271-2/+6
|
* Remove pprint import; convert to use ParseResults.pprint methodsPaul McGuire2016-07-271-3/+2
|
* Put test case classes back in order, as they are defined in the source ↵Paul McGuire2016-07-261-0/+4
| | | | module; makes test results evaluation easier
* Fixed bug in pyparsing_common.numeric, integers were parsed as floatsPaul McGuire2016-06-181-0/+12
|
* Added ParserElement.split() generator methodPaul McGuire2016-06-131-0/+96
| | | Also fixed minor blip in originalTextFor, to inherit ignored exprs from the embedded expression.
* Fix test file path (change '\' to '/')Paul McGuire2016-06-121-1/+1
|
* Change result value returned by runTests to be a list of (test,result) tuplesPaul McGuire2016-06-121-68/+134
| | | | | | Add pyparsing_common helpers convertToDate and convertToDatetime Add named regex fields to iso8601_date and iso8601_datetime Fix pyparsing_common method stripHTMLTags Corresponding cleanups in unittests
* Add support in pyparsing_common for fractions and mixed integer-fraction valuesPaul McGuire2016-06-081-8/+29
|
* Added tokenMap parse action helper; general code cleanup; renamed ↵Paul McGuire2016-05-241-1/+12
| | | | literalStringClass to _literalStringClass throughout
* runTests changes: made parseAll=True the default; added support for failure ↵Paul McGuire2016-05-181-15/+30
| | | | | tests; always return success,results tuple revamp unitTests to use new failureTests arg
* Add UUID to pyparsing_commonPaul McGuire2016-05-181-0/+1
|
* Added more expressions to pyparsing_common: IPv4 and IPv6 addresses ↵Paul McGuire2016-05-181-0/+83
| | | | (including long, short, and mixed forms of IPv6; MAC address; ISO8601 date and date time strings
* Added 'fatal' option to addCondition; enhancements to runTests, and added ↵Paul McGuire2016-05-131-1/+57
| | | | unit test for runTests
* Minor enhancement to traceParseAction decorator, to retain the parse ↵Paul McGuire2016-05-131-63/+27
| | | | | action's name for the trace output Some rework of unitTests.py, to simplify test suite building
* Better handling of Win vs. Linux line endings in ParseConfigFileTest, and ↵Paul McGuire2016-05-111-2/+2
| | | | case-sensitive Setup.ini filename
* Fixed catastrophic regex backtracking in implementation of the quoted string ↵Paul McGuire2016-04-291-1/+16
| | | | expressions (dblQuotedString, sglQuotedString, and quotedString)
* Fixed bug in ParseResults.toDict(), in which dict values were always ↵Paul McGuire2016-03-061-0/+35
| | | | converted to dicts, even if they were just unkeyed lists of tokens.
* Fixed bug in Each introduced in 2.1.0Paul McGuire2016-02-231-0/+21
|
* Fixed bug in SkipTo when using failOn; replaced explicit references to ↵Paul McGuire2016-02-221-6/+10
| | | | obj.__dict__ with vars(obj) (several places); tightened up unit tests for SkipTo
* Added support for assigning to ParseResults using slices; reimplemented ↵Paul McGuire2016-02-151-1/+9
| | | | originalTextFor using sliced assignment
* Cleaned up pickle tests; added CountedArrayTest3 to test for ↵Paul McGuire2016-02-071-35/+106
| | | | non-decimal-integer counts; added OneOrMoreStopTest and ZeroOrMoreStopTest to test for new stopOn arguments
* Removed deprecated class Upcase and deprecated class keepOriginalText; ↵Paul McGuire2016-02-071-20/+20
| | | | updated examples to remove those symbols, and to replace operatorPrecedence with infixNotation
* Add support for pickling ParseResults with protocols 2 and higher (default ↵Paul McGuire2016-02-061-4/+36
| | | | protocol in Py3 is 3)
* Fix _trim_arity to distinguish between TypeErrors raised in parse actions ↵Paul McGuire2016-01-181-1/+15
| | | | and those raised during internal arity testing