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: Allen Li
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: Sat, 25 Jun 2022 22:41:05 -0700

Attached

On Sat, Jun 25, 2022 at 9:48 PM Ihor Radchenko <yantar92@gmail.com> wrote:
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

Attachment: 0001-test-org-Add-test-for-org-todo-prefix-behavior.patch
Description: Text Data


reply via email to

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