diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2023-08-28 19:08:38 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2023-08-28 19:08:38 +0200 |
| commit | c8a642de9a7b6c0e21c8327232245ab721822842 (patch) | |
| tree | 664126b3d15ccb8a29867da366115765a3642957 /tests | |
| parent | b4c7fe02ae5cdb05dc03982fa460a5ee0d7fd7f5 (diff) | |
import-utils: Do not include punctuation when wrapping in @code{}.
* guix/import/utils.scm (beautify-description): Exclude punctuation.
* tests/import-utils.scm: Add new test.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/import-utils.scm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/import-utils.scm b/tests/import-utils.scm index 7b078eac053..229e6eafaab 100644 --- a/tests/import-utils.scm +++ b/tests/import-utils.scm | |||
| @@ -61,6 +61,10 @@ Differences are hard to spot, e.g. in CLOS vs. GOOPS.")) | |||
| 61 | "The term API is not code, but @code{myAPI} might be." | 61 | "The term API is not code, but @code{myAPI} might be." |
| 62 | (beautify-description "The term API is not code, but myAPI might be.")) | 62 | (beautify-description "The term API is not code, but myAPI might be.")) |
| 63 | 63 | ||
| 64 | (test-equal "beautify-description: do not include punctuation when wrapping in @code" | ||
| 65 | "Code (@code{DelayedMatrix}, @code{MaMa}, or @code{MeMe}) should be wrapped." | ||
| 66 | (beautify-description "Code (DelayedMatrix, MaMa, or MeMe) should be wrapped.")) | ||
| 67 | |||
| 64 | (test-equal "license->symbol" | 68 | (test-equal "license->symbol" |
| 65 | 'license:lgpl2.0 | 69 | 'license:lgpl2.0 |
| 66 | (license->symbol license:lgpl2.0)) | 70 | (license->symbol license:lgpl2.0)) |
