diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2026-02-16 19:15:03 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-03-07 11:57:24 +0100 |
| commit | ee0a9f27b903150c53b732f2dd9f6b1cf204bd78 (patch) | |
| tree | 43289d3549610dcd718fd52dab0248a75a62c4a1 /tests/import | |
| parent | c2a92688a90f842353f540e2a441def10ed65130 (diff) | |
import/cran: Fix import of packages in single quotes.
* guix/import/cran.scm (import-pattern): Also match on single quotes.
(needed-vignettes-inputs-in-directory): Use EXTRACT-IMPORTS.
* tests/import/cran.scm: Add test.
Change-Id: Ie69027992519bd8d886860346f4a359514d8e822
Diffstat (limited to 'tests/import')
| -rw-r--r-- | tests/import/cran.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/import/cran.scm b/tests/import/cran.scm index 0b6303370ae..19fd580931c 100644 --- a/tests/import/cran.scm +++ b/tests/import/cran.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2015, 2025 Ricardo Wurmus <rekado@elephly.net> +;;; Copyright © 2015, 2025-2026 Ricardo Wurmus <rekado@elephly.net> ;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> ;;; ;;; This file is part of GNU Guix. @@ -98,6 +98,11 @@ Date/Publication: 2015-07-14 14:15:16 (set->list ((@ (guix import cran) extract-imports) "\"hello::world\", \"this is not data.table::some_procedure(), actually\""))) +(test-equal "extract-imports: extracts text inside single quotes" + (list "FDb.InfiniumMethylation.hg19") + (set->list ((@ (guix import cran) extract-imports) + "suppressPackageStartupMessages(require('FDb.InfiniumMethylation.hg19'))"))) + (test-equal "extract-imports: ignores other colon separated things" (list) (set->list ((@ (guix import cran) extract-imports) |
