This commit is contained in:
Florian Schroedl
2022-06-10 14:06:54 +02:00
parent b0b87869d9
commit 7458778377

View File

@@ -124,23 +124,13 @@ proc foldOrg*(x: OrgBuilderResult): string =
# echo acc.unsafeGet().tree[^1]
when isMainModule:
# import nimprof
# import timeit
let test1 = """* TODO Level 1
Some stuff inbetween
let test1 = """
* TODO Level 1
** DONE Level 2 """
Some text inbetween
let test1_2 = """* TODO Failing
*
** Level 2"""
# let test2 = readFile("/home/floscr/Documents/Org/Bookmarks/bookmarks.org")
# let test2 = readFile("/tmp/gtd.org")
var acc = makeOrg(test1)
** DONE Level 2
"""
let acc = makeOrg(test1)
echo acc.foldOrg()
# echo acc.unsafeGet().tree[^1]