Source

michel-orgmode / run_tests.py

Author Commit Message Labels Comments Date
edgimar
- handle case when org-file contains no headlines
edgimar
- create treemerge function which depends on diff3_text - add (simple) test for treemerge function
edgimar
- access children of TaskTree objects as list indices - new TaskTree method: add_subtree() -- adds all the children of a subtree as children of the current tree's root node. - avoid "x or y" syntax in TaskTree.last(), which behaves incorrectly if len(TaskTree()) is defined, and happens to be 0. - concatenate_trees() function -- combine the children of two trees into one tree. - unit tests for concatenation and TaskTree.add_subtree()
edgimar
- handle initial text in an org-file which isn't part of a headline Initial text in a file that isn't a headline (e.g. preceded with a "* ") will be treated as the body (notes) text for an empty headline (i.e. a line containing only "* "). In other words, the text will be parsed as if there were an empty headline inserted before the non-headline lines. - added test for this initial non-headline condition
edgimar
- updated test to use trailing newline
edgimar
- add script w/ unit-tests - bugfix: indent_level must be assigned *after* add-to-tree code in for loop