aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Šabič <erik.sab@gmail.com>2022-05-28 05:10:33 +0200
committerWilfred Hughes <me@wilfred.me.uk>2022-05-28 11:57:09 -0700
commit209971ba9f576ba080352642cfbf25df5692b1d7 (patch)
treedc28973e81232e7944e887816c2ee901b5879f8d
parent741b8641657578926444a80657fb36c3d8c5372d (diff)
Check for emacs version in helpful--docstring test
-rw-r--r--test/helpful-unit-test.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/helpful-unit-test.el b/test/helpful-unit-test.el
index 1a61a6f..8a95129 100644
--- a/test/helpful-unit-test.el
+++ b/test/helpful-unit-test.el
@@ -119,7 +119,9 @@ bar")))
(should
(equal
(helpful--docstring #'test-foo-advised t)
- "Docstring here too.\n\nThis function has :around advice: `ad-Advice-test-foo-advised'.")))
+ (if (version< emacs-version "28")
+ "Docstring here too."
+ "Docstring here too.\n\nThis function has :around advice: `ad-Advice-test-foo-advised'."))))
(defun test-foo-no-docstring ()
nil)