diff options
| author | Ricardo Wurmus <rekado@elephly.net> | 2025-11-19 15:50:32 +0100 |
|---|---|---|
| committer | Ricardo Wurmus <rekado@elephly.net> | 2025-11-29 12:19:09 +0100 |
| commit | b215cb2027d930b72b43f4d4bb3c090d2c703176 (patch) | |
| tree | f79e1b51541004be0085fe5819f74d6e6498ec38 /tests | |
| parent | ad87b718eda20924b378fcf2d1ea2888a146caa6 (diff) | |
import/cran: Detect library references in "check_installed".
* guix/import/cran.scm (import-pattern): Add case for "check_installed".
* tests/import/cran.scm: Add test.
Change-Id: Id69371158eecaeb371056e6954a3109687346c22
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/import/cran.scm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/import/cran.scm b/tests/import/cran.scm index 6b1bcc297dd..0b6303370ae 100644 --- a/tests/import/cran.scm +++ b/tests/import/cran.scm @@ -103,6 +103,11 @@ Date/Publication: 2015-07-14 14:15:16 (set->list ((@ (guix import cran) extract-imports) "this:is:not::a:procedure"))) +(test-equal "extract-imports: matches things before a comma" + (list "MASS") + (set->list ((@ (guix import cran) extract-imports) + "check_installed(\"MASS\","))) + (test-equal "r-minimal is not a cran package" #f ((@@ (guix import cran) cran-package?) r-minimal)) |
