Esempio n. 1
0
def test_evaluate_parens_0():
    """Test first case."""
    from parenthetics import evaluate_parens
    assert evaluate_parens('') == 0
Esempio n. 2
0
def test_evaluate_parens_04():
    """Final test case."""
    from parenthetics import evaluate_parens
    assert evaluate_parens(')))(((') == -1
Esempio n. 3
0
def test_evaluate_parens_02():
    """Test third case."""
    from parenthetics import evaluate_parens
    assert evaluate_parens('(Hello))') == -1
Esempio n. 4
0
def test_evaluate_parens_03():
    """Test fourth case."""
    from parenthetics import evaluate_parens
    assert evaluate_parens('((Hello)') == 1
Esempio n. 5
0
def test_evaluate_parens_01():
    """Test second case."""
    from parenthetics import evaluate_parens
    assert evaluate_parens('()') == 0