Example #1
0
def test_interrupted_open():
    s = Solution()
    assert 2 == s.longestValidParentheses("()(()(")
Example #2
0
def test_interrupted_closed():
    s = Solution()
    assert 2 == s.longestValidParentheses("())()(")
Example #3
0
def test_simple_open_start():
    s = Solution()
    assert 2 == s.longestValidParentheses("(()")