diff options
| author | Erik Šabič <erik.sab@gmail.com> | 2022-05-28 05:10:33 +0200 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2022-05-28 11:57:09 -0700 |
| commit | 209971ba9f576ba080352642cfbf25df5692b1d7 (patch) | |
| tree | dc28973e81232e7944e887816c2ee901b5879f8d | |
| parent | 741b8641657578926444a80657fb36c3d8c5372d (diff) | |
Check for emacs version in helpful--docstring test
| -rw-r--r-- | test/helpful-unit-test.el | 4 |
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) |
