示例#1
0
def test_tree_end_column():
    """
    Ensures Tree.end_column can find the end column of a tree.
    """
    token = Token('WORD', 'word')
    token.end_column = 1
    tree = Tree('outer', [Tree('path', [token])])
    assert tree.end_column() == '1'
示例#2
0
def test_tree_end_column():
    """
    Ensures Tree.end_column can find the end column of a tree.
    """
    token = Token("WORD", "word")
    token.end_column = 1
    tree = Tree("outer", [Tree("path", [token])])
    assert tree.end_column() == "1"