diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-02-21 03:21:43 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2023-09-11 19:58:54 +0200 |
commit | c26324e29043423387c3041e86d8cbe5cd4102b2 (patch) | |
tree | 6395e01b19572bbc22487115e52cadd1f39fafcf /tests/test | |
parent | Fix seeding of UUIDs. (diff) | |
download | calp-c26324e29043423387c3041e86d8cbe5cd4102b2.tar.gz calp-c26324e29043423387c3041e86d8cbe5cd4102b2.tar.xz |
Change `kvlist->assq` and `group-by` to return pairs.
Each value in the return of group-by must have exactly two values, so
cons pairs (instead of lists) is much better.
Diffstat (limited to '')
-rw-r--r-- | tests/test/util.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test/util.scm b/tests/test/util.scm index 75d59801..d2fc2d81 100644 --- a/tests/test/util.scm +++ b/tests/test/util.scm @@ -127,7 +127,6 @@ (test-group "Arrows" - (test-equal "->" 9 (-> 1 (+ 2) (* 3))) (test-equal "-> order dependant" -1 (-> 1 (- 2))) (test-equal "->> order dependant" 1 (->> 1 (- 2)))) @@ -154,12 +153,12 @@ (assq-merge '((k 1) (v 2)) '((k 2)))) (test-equal "kvlist->assq" - '((a 1) (b 2)) + '((a . 1) (b . 2)) (kvlist->assq '(a: 1 b: 2))) (test-equal "kvlist->assq repeated key" - '((a 1) (b 2) (a 3)) + '((a . 1) (b . 2) (a . 3)) (kvlist->assq '(a: 1 b: 2 a: 3)))) (test-equal "vector-last" |