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

Public Member Functions

 test_unicode_crash (self)
 
 test_unicode (self)
 
 test_unicode_keep_parens (self)
 
 test_unicode_surrounding_parens (self)
 

Detailed Description

Tests for str(), unicode(), and repr() of expressions

Member Function Documentation

◆ test_unicode()

parsimonious.tests.test_expressions.RepresentationTests.test_unicode (   self)
Smoke-test the conversion of expressions to bits of rules.

A slightly more comprehensive test of the actual values is in
``GrammarTests.test_unicode``.

◆ test_unicode_crash()

parsimonious.tests.test_expressions.RepresentationTests.test_unicode_crash (   self)
Make sure matched unicode strings don't crash ``__str__``.

◆ test_unicode_keep_parens()

parsimonious.tests.test_expressions.RepresentationTests.test_unicode_keep_parens (   self)
Make sure converting an expression to unicode doesn't strip
parenthesis.

◆ test_unicode_surrounding_parens()

parsimonious.tests.test_expressions.RepresentationTests.test_unicode_surrounding_parens (   self)
Make sure there are no surrounding parens around the entire
right-hand side of an expression (as they're unnecessary).

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