Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
parsimonious.tests.test_expressions.LengthTests Class Reference
Inheritance diagram for parsimonious.tests.test_expressions.LengthTests:
Inheritance graph
[legend]
Collaboration diagram for parsimonious.tests.test_expressions.LengthTests:
Collaboration graph
[legend]

Public Member Functions

 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)
 

Detailed Description

Tests for returning the right lengths

I wrote these before parse tree generation was implemented. They're
partially redundant with TreeTests.

Member Function Documentation

◆ 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: