[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/denote f3fe2e1e2a 2/3: denote-test: refine tests for id
From: |
ELPA Syncer |
Subject: |
[elpa] externals/denote f3fe2e1e2a 2/3: denote-test: refine tests for identifier/signature |
Date: |
Tue, 23 May 2023 03:57:49 -0400 (EDT) |
branch: externals/denote
commit f3fe2e1e2a26a9d3455d7c983a4340202d811605
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
denote-test: refine tests for identifier/signature
---
tests/denote-test.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tests/denote-test.el b/tests/denote-test.el
index 0cd6cc8ce4..3df839483f 100644
--- a/tests/denote-test.el
+++ b/tests/denote-test.el
@@ -141,13 +141,13 @@ and use one of the extensions implied by
`denote-file-type'."
(ert-deftest denote-test--denote-file-has-identifier-p ()
"Test that `denote-file-has-identifier-p' checks for a Denote identifier."
- (should
- (denote-file-has-identifier-p "20230522T154900--test__keyword.txt")))
+ (should (denote-file-has-identifier-p "20230522T154900--test__keyword.txt"))
+ (should (null (denote-file-has-identifier-p "T154900--test__keyword.txt"))))
(ert-deftest denote-test--denote-file-has-signature-p ()
"Test that `denote-file-has-signature-p' checks for a Denote signature."
- (should
- (denote-file-has-signature-p "20230522T154900==sig--test__keyword.txt")))
+ (should (denote-file-has-signature-p
"20230522T154900==sig--test__keyword.txt"))
+ (should (null (denote-file-has-signature-p
"20230522T154900--test__keyword.txt"))))
(provide 'denote-test)
;;; denote-test.el ends here