(should-error (make-package "x" :use))
(should-error (make-package "x" :use 1)))
+(ert-deftest pkg-tests-packagep ()
+ (packagep (make-package "x")))
+
(ert-deftest pkg-tests-standard-packages ()
(should (packagep (find-package "emacs")))
(should (packagep (find-package "keyword")))
(should nil))
(ert-deftest pkg-tests-list-all-packages ()
+ (should (seq-every-p #'packagep (list-all-packages)))
(with-packages (x y z)
(let ((all (list-all-packages)))
(should (member x all))
(should-not (find-symbol "foo")))
(cl-unintern 'foo)))
+(ert-deftest pkg-tests-package-name ()
+ (should (equal (package-name "emacs") "emacs")))
+
(ert-deftest pkg-tests-export ()
(should nil))