From b1febde3e9be32b9d88918ed733efc3796e3f143 Mon Sep 17 00:00:00 2001 From: David Glasser Date: Wed, 16 Jan 2013 14:59:19 -0500 Subject: Fix output for arrays whose last element is a hole: [1,,] 1529ab96 started to do this (by considering holes to be separate from "undefined") but it still converted [1,,] (length 2, last element hole, trailing comma) to [1,] (length 1, trailing comma) Unfortunately the test suite doesn't really make this clear: the new test here passes with or without this patch because run-tests.js beautifys the expected output (in "make_code"), which does the incorrect transformation! If you make some manual change to arrays.js to make the test fail and see the INPUT and OUTPUT, then you can see that without this fix, [1,,] -> [1,], and with this fix it stays [1,,]. --- test/compress/arrays.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/compress') diff --git a/test/compress/arrays.js b/test/compress/arrays.js index 10fe6eb5..0c3d8ba2 100644 --- a/test/compress/arrays.js +++ b/test/compress/arrays.js @@ -1,10 +1,12 @@ holes_and_undefined: { input: { + w = [1,,]; x = [1, 2, undefined]; y = [1, , 2, ]; z = [1, undefined, 3]; } expect: { + w=[1,,]; x=[1,2,void 0]; y=[1,,2]; z=[1,void 0,3]; -- cgit v1.2.3 76b573'>treecommitdiff
path: root/tests/pki.scm
a deprecation warning. (build-machine-systems): Access the new systems field or fallback to use build-machine-system, for backward compatibility. (machine-matches?): Adjust. * tests/offload.scm: Add tests... * Makefile.am (SCM_TESTS): ...and register them. * doc/guix.texi (Daemon Offload Setup): Update doc.
AgeCommit message (Expand)Author
2022-12-12pki: 'public-keys->acl' deduplicates entries....Reported by Tobias Geerinckx-Rice <me@tobias.gr> in <https://issues.guix.gnu.org/50892>. * guix/pki.scm (public-keys->acl): Add call to 'delete-duplicates'. * tests/pki.scm ("public-keys->acl deduplication"): New test. Ludovic Courtès
Maxim Cournoyer