diff options
author | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
---|---|---|
committer | S. Solomon Darnell | 2025-03-28 21:52:21 -0500 |
commit | 4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch) | |
tree | ee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py | |
parent | cc961e04ba734dd72309fb548a2f97d67d578813 (diff) | |
download | gn-ai-master.tar.gz |
Diffstat (limited to '.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py')
-rw-r--r-- | .venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py b/.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py new file mode 100644 index 00000000..80a8e779 --- /dev/null +++ b/.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py @@ -0,0 +1,44 @@ +from typing import Any, Dict + + +def nodedict(parent, children=[], previous=None, next=None) -> Dict[str, Any]: + return dict(parent_heading=parent, + children_heading=children, + previous_same_level_heading=previous, + next_same_level_heading=next) + + +data = [nodedict(*args) for args in [ + # G0 + (None, [], None, 'G1-H1'), + # G1 + (None, ['G1-H2'], 'G0-H1', 'G2-H1'), + ('G1-H1', ['G1-H3']), + ('G1-H2',), + # G2 + (None, ['G2-H2', 'G2-H3'], 'G1-H1', 'G3-H1'), + ('G2-H1',), + ('G2-H1',), + # G3 + (None, ['G3-H2', 'G3-H3'], 'G2-H1', 'G4-H1'), + ('G3-H1',), + ('G3-H1',), + # G4 + (None, ['G4-H2', 'G4-H3', 'G4-H4'], 'G3-H1', 'G5-H1'), + ('G4-H1',), + ('G4-H1',), + ('G4-H1',), + # G5 + (None, ['G5-H2', 'G5-H4'], 'G4-H1', 'G6-H1'), + ('G5-H1', ['G5-H3'], None, 'G5-H4'), + ('G5-H2',), + ('G5-H1', [], 'G5-H2'), + # G6 + (None, ['G6-H2', 'G6-H5'], 'G5-H1', 'G7-H1'), + ('G6-H1', ['G6-H3', 'G6-H4'], None, 'G6-H5'), + ('G6-H2',), + ('G6-H2',), + ('G6-H1', [], 'G6-H2'), + # G7 + (None, [], 'G6-H1'), +]] |