Exemplo n.º 1
0
def test_tree_column():
    """
    Ensures Tree.column can find the column of a tree
    """
    tree = Tree('outer', [Tree('path', [Token('WORD', 'word', column=1)])])
    assert tree.column() == '1'
Exemplo n.º 2
0
def test_tree_column():
    """
    Ensures Tree.column can find the column of a tree
    """
    tree = Tree("outer", [Tree("path", [Token("WORD", "word", column=1)])])
    assert tree.column() == "1"