]> git.eshelyaron.com Git - emacs.git/commitdiff
add testcase
authorNaoya Yamashita <conao3@gmail.com>
Mon, 22 Feb 2021 18:10:45 +0000 (03:10 +0900)
committerNaoya Yamashita <conao3@gmail.com>
Mon, 22 Feb 2021 19:12:03 +0000 (04:12 +0900)
test/lisp/use-package/use-package-tests.el

index 3825aa3648745aececd08ae7c2aba594ef6baa13..28d4620ac1a2a56cee3a33cb5888cb0f65eb6b83 100644 (file)
           (gnus-harvest-install))
         t))))
 
+(ert-deftest use-package-test/:autoload-1 ()
+  (match-expansion
+   (use-package foo :autoload bar)
+   `(unless (fboundp 'bar)
+      (autoload #'bar "foo"))))
+
 (ert-deftest use-package-test/:defines-1 ()
   (match-expansion
    (use-package foo :defines bar)