summaryrefslogtreecommitdiff
path: root/tests/pki.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pki.scm')
-rw-r--r--tests/pki.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/pki.scm b/tests/pki.scm
index d6a6b476c7..86daff8ddf 100644
--- a/tests/pki.scm
+++ b/tests/pki.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2013, 2014, 2022 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -66,6 +66,10 @@
(test-assert "authorized-key? public-key singleton"
(authorized-key? %public-key (public-keys->acl (list %public-key))))
+(test-equal "public-keys->acl deduplication"
+ (public-keys->acl (list %public-key))
+ (public-keys->acl (make-list 10 %public-key)))
+
(test-assert "signature-case valid-signature"
(let* ((hash (sha256 #vu8(1 2 3)))
(data (bytevector->hash-data hash #:key-type (key-type %public-key)))