summaryrefslogtreecommitdiff
path: root/tests/read-print.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2025-02-24 17:04:30 +0100
committerLudovic Courtès <ludo@gnu.org>2025-02-24 23:33:51 +0100
commit536909ea67cd3cfe506326c6411a5c549bb88055 (patch)
treeb21a26bd176e1941c03b13e706058721878c4465 /tests/read-print.scm
parent48e0e6a1274e9112f13deb349cc533d5b7324e93 (diff)
read-print: Adjust test for keyword alignment.
This is a followup to f7744227699d27045e87be9eac3464c2f62ff7e3, which changed the rule without updating the test. * tests/read-print.scm ("keyword-value-same-line"): Adjust. Change-Id: Ie802ef3d2e577cb0647158baed0606c958394c06
Diffstat (limited to 'tests/read-print.scm')
-rw-r--r--tests/read-print.scm16
1 files changed, 9 insertions, 7 deletions
diff --git a/tests/read-print.scm b/tests/read-print.scm
index c1006a8a683..702bb9cba59 100644
--- a/tests/read-print.scm
+++ b/tests/read-print.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2021-2023 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2021-2023, 2025 Ludovic Courtès <ludo@gnu.org>
3;;; 3;;;
4;;; This file is part of GNU Guix. 4;;; This file is part of GNU Guix.
5;;; 5;;;
@@ -274,17 +274,19 @@ mnopqrstuvwxyz.\")"
274 '(#:phases %standard-phases 274 '(#:phases %standard-phases
275 #:tests? #f)))") 275 #:tests? #f)))")
276 276
277;; '#:key value' is kept on the same line. 277;; '#:key value' is kept on the same line, except when followed by a gexp.
278(test-pretty-print "\ 278(test-pretty-print "\
279(package 279(package
280 (name \"keyword-value-same-line\") 280 (name \"keyword-value-same-line\")
281 (arguments 281 (arguments
282 (list 282 (list
283 #:phases #~(modify-phases %standard-phases 283 #:phases
284 (add-before 'x 'y 284 #~(modify-phases %standard-phases
285 (lambda* (#:key inputs #:allow-other-keys) 285 (add-before 'x 'y
286 (foo bar baz)))) 286 (lambda* (#:key inputs #:allow-other-keys)
287 #:make-flags #~'(\"ANSWER=42\") 287 (foo bar baz))))
288 #:make-flags
289 #~'(\"ANSWER=42\")
288 #:tests? #f)))") 290 #:tests? #f)))")
289 291
290(test-pretty-print "\ 292(test-pretty-print "\