Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERT test 'test-issue-23' fails if 'STARTED' is not one of the TODO keywords #31

Open
dapritchard opened this issue Sep 17, 2021 · 0 comments · May be fixed by #32
Open

ERT test 'test-issue-23' fails if 'STARTED' is not one of the TODO keywords #31

dapritchard opened this issue Sep 17, 2021 · 0 comments · May be fixed by #32

Comments

@dapritchard
Copy link

In my version of Emacs (v27.2) STARTED is not one of the default keywords, which causes the test-issue-23 test to fail for me. A possible solution is to specify per-file TODO keywords in the tests/issue-23.org file.

The following is the output from the ERT test. We can see that the STARTED keyword is being brought along from the parsed version of the tests/issue-23.org file which is causing the error.

F test-issue-23
    Test custom properties.
    (ert-test-failed
     ((should
       (equal in out))
      :form
      (equal "task,CUSTOM_1,CUSTOM_2,start,end
STARTED Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
STARTED Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
STARTED Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
STARTED Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
STARTED Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
STARTED Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" "task,CUSTOM_1,CUSTOM_2,start,end
Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
")
      :value nil :explanation
      (arrays-of-different-length 491 443 "task,CUSTOM_1,CUSTOM_2,start,end
STARTED Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
STARTED Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
STARTED Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
STARTED Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
STARTED Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
STARTED Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" "task,CUSTOM_1,CUSTOM_2,start,end
Example First Task,A Value,10,2021-01-01 08:00,2021-01-01 09:00
Example First Task,A Value,10,2021-01-01 06:00,2021-01-01 07:00
Example First Child Task,A Value,15,2021-01-04 06:00,2021-01-04 07:00
Example Second Task,defaultvalue,5,2021-01-01 09:00,2021-01-01 09:30
Example Second Child Task,defaultvalue,20,2021-01-04 07:00,2021-01-04 07:30
Example Third Task,defaultvalue,,2021-01-04 07:30,2021-01-04 08:00
" first-mismatch-at 33)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant