Skip to content

Commit

Permalink
Repair helpful--display-implementations test for emacs 29.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aagon authored and Wilfred committed Oct 7, 2023
1 parent 737ff82 commit 79cae33
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/helpful-unit-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -1089,8 +1089,12 @@ find the source code."
(require 'xref)
(helpful-function 'xref-location-marker)
(should (s-contains-p "Implementations" (buffer-string)))
(should (s-contains-p "((l xref-file-location))" (buffer-string)))
(should (s-contains-p "((l xref-buffer-location))" (buffer-string))))
(should (if (version< emacs-version "29.1")
(s-contains-p "((l xref-file-location))" (buffer-string))
(s-contains-p "(xref-location-marker (L xref-file-location))" (buffer-string))))
(should (if (version< emacs-version "29.1")
(s-contains-p "((l xref-buffer-location))" (buffer-string))
(s-contains-p "(xref-location-marker (L xref-buffer-location))" (buffer-string)))))

(defun helpful--boring-advice (orig-fn &rest args)
(apply orig-fn args))
Expand Down

0 comments on commit 79cae33

Please sign in to comment.