aboutsummaryrefslogtreecommitdiff
path: root/tests/pk-crypto.scm
diff options
context:
space:
mode:
Diffstat (limited to 'tests/pk-crypto.scm')
-rw-r--r--tests/pk-crypto.scm12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/pk-crypto.scm b/tests/pk-crypto.scm
index 8da533f5b2..3135d5a60c 100644
--- a/tests/pk-crypto.scm
+++ b/tests/pk-crypto.scm
@@ -82,6 +82,18 @@
(gc)
+(test-equal "canonical-sexp-length"
+ '(0 1 2 4 0 0)
+ (map (compose canonical-sexp-length string->canonical-sexp)
+ '("()" "(a)" "(a b)" "(a #616263# b #C001#)" "a" "#123456#")))
+
+(test-equal "canonical-sexp-list?"
+ '(#t #f #t #f)
+ (map (compose canonical-sexp-list? string->canonical-sexp)
+ '("()" "\"abc\"" "(a b c)" "#123456#")))
+
+(gc)
+
(test-equal "canonical-sexp-car + cdr"
'("(b \n (c xyz)\n )")
(let ((lst (string->canonical-sexp "(a (b (c xyz)))")))
...Guillaume Le Vaillant 2019-11-18linux-boot: Don't ignore options when mounting root file system....Guillaume Le Vaillant 2019-11-18linux-boot: Fix indentation....Maxim Cournoyer 2019-09-25linux-boot: Fix typo....Maxim Cournoyer 2019-08-16linux-modules: Add 'load-linux-modules-from-directory'....Ludovic Courtès 2019-06-03linux-boot: Fix e2fsck warning....Danny Milosavljevic 2019-03-24system: Initialize console keyboard layout in the initrd....Ludovic Courtès 2018-05-28file-systems: Remove 'title' field and add <file-system-label>....Ludovic Courtès 2018-02-06gnu: build: linux-boot: Remove bind-mount export....Christopher Baines 2018-02-01linux-boot: Add find-long-options....Danny Milosavljevic 2018-01-19gnu: Consistently Write ‘file system(s)’....Tobias Geerinckx-Rice