コード例 #1
0
def test_pairs_match():
    matching = '[]{}(){({()})}'
    assert parens_match(matching)
コード例 #2
0
def test_mismatch():
    dont_match = '[()[]}'
    assert not parens_match(dont_match)