aboutsummaryrefslogtreecommitdiff
path: root/.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py
diff options
context:
space:
mode:
authorS. Solomon Darnell2025-03-28 21:52:21 -0500
committerS. Solomon Darnell2025-03-28 21:52:21 -0500
commit4a52a71956a8d46fcb7294ac71734504bb09bcc2 (patch)
treeee3dc5af3b6313e921cd920906356f5d4febc4ed /.venv/lib/python3.12/site-packages/orgparse/tests/data/02_tree_struct.py
parentcc961e04ba734dd72309fb548a2f97d67d578813 (diff)
downloadgn-ai-master.tar.gz
two version of R2R are hereHEADmaster
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.py44
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'),
+]]