From 5e1103821a566e55c848c8fa323d07801cce6ab7 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Wed, 1 Oct 2014 10:19:14 +0200 Subject: utils: Add 'strip-keyword-arguments'. * guix/utils.scm (strip-keyword-arguments): New procedure. * tests/utils.scm ("strip-keyword-arguments"): New test. --- tests/utils.scm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') diff --git a/tests/utils.scm b/tests/utils.scm index 611867ca09..a662c9a8d3 100644 --- a/tests/utils.scm +++ b/tests/utils.scm @@ -120,6 +120,12 @@ '(0 1 2 3))) list)) +(test-equal "strip-keyword-arguments" + '(a #:b b #:c c) + (strip-keyword-arguments '(#:foo #:bar #:baz) + '(a #:foo 42 #:b b #:baz 3 + #:c c #:bar 4))) + (let* ((tree (alist->vhash '((0 2 3) (1 3 4) (2) (3 5 6) (4 6) (5) (6)) hashq)) -- cgit v1.2.3