[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/package-lint 06f89486be 2/5: Use a synthetic package for t
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/package-lint 06f89486be 2/5: Use a synthetic package for the snapshot dep warning test |
Date: |
Fri, 3 Nov 2023 16:01:29 -0400 (EDT) |
branch: elpa/package-lint
commit 06f89486be134c4441ea2c9caf50d298d4fa6271
Author: Steve Purcell <steve@sanityinc.com>
Commit: Steve Purcell <steve@sanityinc.com>
Use a synthetic package for the snapshot dep warning test
---
package-lint-test.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/package-lint-test.el b/package-lint-test.el
index 7237b1f9ef..39c79efe26 100644
--- a/package-lint-test.el
+++ b/package-lint-test.el
@@ -282,10 +282,12 @@ headers and provide form."
(package-lint-test--run ";; Package-Requires:
((example-nonexistent-package \"1\"))"))))
(ert-deftest package-lint-test-warn-snapshot-dep ()
+ (package-lint-test-add-package-lint-foobar-to-archive '(0 5 0))
+ (package-lint-test-add-package-lint-foobar-to-archive '(20180101 0 0))
(should
(equal
- '((6 23 warning "Use a non-snapshot version number for dependency on
\"package-lint\" if possible."))
- (package-lint-test--run ";; Package-Requires: ((package-lint
\"20160101.1234\"))"))))
+ '((6 23 warning "Use a non-snapshot version number for dependency on
\"package-lint-foobar\" if possible."))
+ (package-lint-test--run ";; Package-Requires: ((package-lint-foobar
\"20160101.1234\"))"))))
(ert-deftest package-lint-test-warn-unversioned-dep ()
(should