|
| | len_eq (self, node, length) |
| |
|
| test_regex (self) |
| |
|
| test_sequence (self) |
| |
|
| test_one_of (self) |
| |
|
| test_not (self) |
| |
|
| test_optional (self) |
| |
|
| test_zero_or_more (self) |
| |
|
| test_one_or_more (self) |
| |
Tests for returning the right lengths
I wrote these before parse tree generation was implemented. They're
partially redundant with TreeTests.
◆ len_eq()
| parsimonious.tests.test_expressions.LengthTests.len_eq |
( |
|
self, |
|
|
|
node, |
|
|
|
length |
|
) |
| |
Return whether the match lengths of 2 nodes are equal.
Makes tests shorter and lets them omit positional stuff they don't care
about.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/parsimonious/tests/test_expressions.py