Attached On Sat, Jun 25, 2022 at 9:48 PM Ihor Radchenko wrote: > Allen Li writes: > > >> Would you also be interested to write a test checking org-todo ARGS? > >> > > > > Attached > > Thanks! However, it is unclear what this test is checking for. > > > +(ert-deftest test-org/org-todo-prefix () > > + "Test `org-todo' prefix arg behavior." > > + ;; -1 prefix arg should cancel repeater and mark DONE. > > + (should-not > > + (string-prefix-p > > + "* TODO H" > > + (let ((org-todo-keywords '((sequence "TODO" "DONE")))) > > + (org-test-with-temp-text "* TODO H\n<2012-03-29 Thu +2y>" > > + (org-todo -1) > > + (buffer-string))))) > > This test does not check if the task is actually marked DONE and also > does not check if the repeater is canceled. > > Best, > Ihor > >