diff options
author | Sebastian Wiesner <lunaryorn@gmail.com> | 2013-11-01 11:47:59 +0100 |
---|---|---|
committer | Sebastian Wiesner <lunaryorn@gmail.com> | 2013-11-01 11:47:59 +0100 |
commit | 138d91ebbe232ec8f1ad93939deac3f9ed916277 (patch) | |
tree | 5b8350e57e4da3e2c7c973ebff339b62b023ace6 /test | |
parent | 75934ea4ec267b36f2b3b7ea37fe26aa42bc519b (diff) |
Add test case for package version
Diffstat (limited to 'test')
-rw-r--r-- | test/pkg-info-test.el | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/pkg-info-test.el b/test/pkg-info-test.el index 7bfc95f..0d1fe00 100644 --- a/test/pkg-info-test.el +++ b/test/pkg-info-test.el @@ -49,6 +49,10 @@ (should-error (pkg-info-defining-library-version #'this-is-no-function)) (should-error (pkg-info-defining-library-version (lambda () "foo")))) +(ert-deftest pkg-info-package-version () + (should (equal (pkg-info-package-version 'pkg-info-dummy-package) '(3 4 2 1))) + (should-error (pkg-info-package-version 'no-such-package))) + (ert-deftest pkg-info-format-version () (should (equal (pkg-info-format-version '(3 4 2 1)) "3.4.2.1")) (should (equal (pkg-info-format-version '(2 1 -3)) "2.1alpha"))) |