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

Public Member Functions

 test_simple_node (self)
 
 test_sequence_nodes (self)
 
 test_one_of (self)
 
 test_optional (self)
 
 test_zero_or_more_zero (self)
 
 test_one_or_more_one (self)
 

Detailed Description

Tests for building the right trees

We have only to test successes here; failures (None-returning cases) are
covered above.

Member Function Documentation

◆ test_one_of()

parsimonious.tests.test_expressions.TreeTests.test_one_of (   self)
``OneOf`` should return its own node, wrapping the child that succeeds.

◆ test_one_or_more_one()

parsimonious.tests.test_expressions.TreeTests.test_one_or_more_one (   self)
Test the 1 case of ``OneOrMore``; it should return a node with a child.

◆ test_optional()

parsimonious.tests.test_expressions.TreeTests.test_optional (   self)
``Optional`` should return its own node wrapping the succeeded child.

◆ test_sequence_nodes()

parsimonious.tests.test_expressions.TreeTests.test_sequence_nodes (   self)
Assert that ``Sequence`` produces nodes with the right children.

◆ test_simple_node()

parsimonious.tests.test_expressions.TreeTests.test_simple_node (   self)
Test that leaf expressions like ``Literal`` make the right nodes.

◆ test_zero_or_more_zero()

parsimonious.tests.test_expressions.TreeTests.test_zero_or_more_zero (   self)
Test the 0 case of ``ZeroOrMore``; it should still return a node.

The documentation for this class was generated from the following file: