Ejemplo n.º 1
0
def test_closed():
    a_string = u"(hello( my good friend)))"
    assert pp.parentheticals(a_string) == -1
Ejemplo n.º 2
0
def test_balanced_improper4():
    a_string = u"())(((((((((())))))))))("
    assert pp.parentheticals(a_string) == -2
Ejemplo n.º 3
0
def test_balanced_improper3():
    a_string = u")helo (hello( my good friend)()()()()"
    assert pp.parentheticals(a_string) == -2
Ejemplo n.º 4
0
def test_open():
    a_string = u"(hello( my good friend)"
    assert pp.parentheticals(a_string) == 1
Ejemplo n.º 5
0
def test_balanced_proper():
    a_string = u"(hello( my good friend))"
    assert pp.parentheticals(a_string) == 0