emacs-orgmode
[Top][All Lists]
Advanced

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

test-org-cite/main-affixes failure


From: Kyle Meyer
Subject: test-org-cite/main-affixes failure
Date: Sat, 06 Nov 2021 13:44:02 -0400

Hi Nicolas,

test-org-cite/main-affixes, added in ad4028286 (oc: Refactor affixes
extraction, 2021-11-03), is failing on my end:

  $ BTEST_RE=main-affixes make test-dirty
  [...]
  Test test-org-cite/main-affixes condition:
      (ert-test-failed
       ((should
         (equal '...
        (org-test-with-temp-text "[cite:@key1 post1;@key2 post2; global post]" 
...)))
        :form
        (equal
         (nil "global post")
         (nil
        #(" global post" 0 12 ...)))
        :value nil :explanation
        (list-elt 1
                (arrays-of-different-length 11 12 "global post"
                                            #(" global post" 0 12 ...)
                                            first-mismatch-at 0))))
     FAILED  1/1  test-org-cite/main-affixes (0.009342 sec)
  [...]

Adding a space to the expected SUFFIX (as in the diff below) makes the
test pass for me and looks to be consistent with some of the other cases
in that test.

Does the current version of the test (no space) pass on your end?


diff --git a/testing/lisp/test-oc.el b/testing/lisp/test-oc.el
index c700780fe..896870303 100644
--- a/testing/lisp/test-oc.el
+++ b/testing/lisp/test-oc.el
@@ -286,7 +286,7 @@ (ert-deftest test-org-cite/main-affixes ()
           (org-test-with-temp-text "[cite:global pre;pre1 @key1;pre2 @key2]"
             (org-cite-main-affixes (org-element-context)))))
   (should
-   (equal '(nil . ("global post"))
+   (equal '(nil . (" global post"))
           (org-test-with-temp-text "[cite:@key1 post1;@key2 post2; global 
post]"
             (org-cite-main-affixes (org-element-context))))))
 



reply via email to

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