def render(folder, name):
    filepath = os.path.join(folder, name + '.text')
    with open(filepath) as f:
        content = f.read()

    html = m.parse(content)

    filepath = os.path.join(folder, name + '.html')
    with open(filepath) as f:
        result = f.read()

    html = re.sub(r'\s', '', html)
    result = re.sub(r'\s', '', result)
    for i, s in enumerate(html):
        if s != result[i]:
            begin = max(30 - i, 0)
            msg = '\n\n%s\n------Not Equal(%d)------\n%s' % (
                html[begin:i + 30], i, result[begin:i + 30]
            )
            raise ValueError(msg)
    assert html == result
dataset/ETHPy150Open MikeCoder/markdown-preview.vim/pythonx/tests/test_cases.py/render/swapped operands of `-`