emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org-todo (C-c C-t) bad negative prefix behavior [9.5.2 (9.5.2-


From: Ihor Radchenko
Subject: Re: [BUG] org-todo (C-c C-t) bad negative prefix behavior [9.5.2 (9.5.2-gfbff08 @ /home/ionasal/.emacs.d/elpa/org-9.5.2/)]
Date: Sun, 26 Jun 2022 12:49:38 +0800

Allen Li <darkfeline@felesatra.moe> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]