(nconc cycle cycle)
(should-not (plistp cycle))))
+(defun subr-tests--some-fun ())
+(defalias 'subr-tests--some-alias #'subr-tests--some-fun)
+
+(ert-deftest subr-tests-function-get ()
+ (unwind-protect
+ (progn
+ (should (eq (function-get 'subr-tests--some-fun 'prop) nil))
+ (should (eq (function-get 'subr-tests--some-alias 'prop) nil))
+ ;; With the function symbol directly.
+ (function-put 'subr-tests--some-fun 'prop 'value)
+ (should (eq (function-get 'subr-tests--some-fun 'prop) 'value))
+ ;; With an alias.
+ (should (eq (function-get 'subr-tests--some-alias 'prop) 'value))
+ (function-put 'subr-tests--some-alias 'prop 'value))
+ (function-put 'subr-tests--some-fun 'prop nil)))
+
(defun subr-tests--butlast-ref (list &optional n)
"Reference implementation of `butlast'."
(let ((m (or n 1))