Commit f00dd967 authored by eckhart's avatar eckhart
Browse files

- small cleanups

parent e5f8370f
......@@ -279,6 +279,7 @@ def expand_table(compact_table: Dict) -> Dict:
return expanded_table
#######################################################################
#
# miscellaneous (DHParser-specific)
......
......@@ -181,7 +181,6 @@ class TestNodeFind():
tree = mock_syntax_tree('(a (b X) (X (c d)) (e (X F)))')
assert tree[0] == mock_syntax_tree('(b X)')
assert tree[2] == mock_syntax_tree('(e (X F))')
print(flatten_sxpr(tree[0].as_sxpr()))
try:
node = tree[3]
assert False, "IndexError expected!"
......@@ -189,7 +188,6 @@ class TestNodeFind():
pass
matches = list(tree['X'])
assert matches[0] == mock_syntax_tree('(X (c d))')
print(flatten_sxpr(matches[0].as_sxpr()))
assert matches[1] == mock_syntax_tree('(X F)')
def test_contains(self):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment