diff --git a/test/automated/cl-lib-tests.el b/test/automated/cl-lib-tests.el index 9b230db99e4..e2429b7de37 100644 --- a/test/automated/cl-lib-tests.el +++ b/test/automated/cl-lib-tests.el @@ -222,8 +222,8 @@ (def . ,(or `nil `(nil)))) t))))) (ert-deftest cl-lib-struct-constructors () - (should (equal (documentation 'cl-lib--con-2 t) - "Constructor docstring.")) + (should (string-match "\\`Constructor docstring." + (documentation 'cl-lib--con-2 t))) (should (mystruct-p (cl-lib--con-1))) (should (mystruct-p (cl-lib--con-2))))