Skip to content

Commit

Permalink
Use a synthetic package for the snapshot dep warning test
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Nov 3, 2023
1 parent dd65423 commit 06f8948
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions package-lint-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06f8948

Please sign in to comment.