Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Feb 7, 2025
1 parent aeba649 commit 4872e30
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions stanza/tests/constituency/test_parse_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -466,19 +466,16 @@ def test_count_wide_nodes():
(, ,)
(NP-SBJ-2
(NP
(NP (DT the) (NN role))
(PP
(IN of)
(NP (NNP Celimene))))
(NP (DT the) (NN role) )
(PP (IN of)
(NP (NNP Celimene) )))
(, ,)
(VP
(VBN played)
(NP (-NONE- *))
(PP
(IN by)
(NP-LGS (NNP Kim) (NNP Cattrall)))))
(VP (VBN played)
(NP (-NONE- *) )
(PP (IN by)
(NP-LGS (NNP Kim) (NNP Cattrall) )))
(, ,) )
(VP
(, ,)
(VBD was)
(VP
(ADVP-MNR (RB mistakenly))
Expand All @@ -490,6 +487,7 @@ def test_count_wide_nodes():
(. .)))
"""
expected_move = read_one_tree(expected_move)
assert tree != new_tree
assert new_tree == expected_move

# this one should move from right to left
Expand Down

0 comments on commit 4872e30

Please sign in to comment.