summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-11-27 14:08:34 +0100
committerRicardo Wurmus <rekado@elephly.net>2024-12-03 16:59:54 +0100
commit8bee3a59108f09d362be46e25f91e86e6b918d84 (patch)
treec48a762c9b830d0ebf6044bea0f746462e098339 /tests
parentc851b73e79b9a1927658714f191b4611b8ab1ea3 (diff)
import: utils: Wrap function names in @code.
* guix/import/utils.scm (beautify-description): Adjust to include "()" in @code wrapper. * tests/import-utils.scm ("beautify-description: wrap function names in @code"): New test. Change-Id: I2b58728571a18ce8302c1b6f98b0c16dbe5931c3
Diffstat (limited to 'tests')
-rw-r--r--tests/import-utils.scm6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/import-utils.scm b/tests/import-utils.scm
index bec38b0c30..607349203c 100644
--- a/tests/import-utils.scm
+++ b/tests/import-utils.scm
@@ -1,5 +1,5 @@
;;; GNU Guix --- Functional package management for GNU
-;;; Copyright © 2015, 2017, 2022, 2023 Ricardo Wurmus <rekado@elephly.net>
+;;; Copyright © 2015, 2017, 2022, 2023, 2024 Ricardo Wurmus <rekado@elephly.net>
;;; Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
;;; Copyright © 2020 Martin Becze <mjbecze@riseup.net>
;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
@@ -65,6 +65,10 @@ Differences are hard to spot, e.g. in CLOS vs. GOOPS."))
"Code (@code{DelayedMatrix}, @code{MaMa}, or @code{MeMe}) should be wrapped."
(beautify-description "Code (DelayedMatrix, MaMa, or MeMe) should be wrapped."))
+(test-equal "beautify-description: wrap function names in @code"
+ "The main functions are: @code{haplo.em()} and @code{haplo.power()}; FYI."
+ (beautify-description "The main functions are: haplo.em() and haplo.power(); FYI."))
+
(test-equal "license->symbol"
'license:lgpl2.0
(license->symbol license:lgpl2.0))