summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/import/cran.scm5
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
103 (set->list ((@ (guix import cran) extract-imports) 103 (set->list ((@ (guix import cran) extract-imports)
104 "this:is:not::a:procedure"))) 104 "this:is:not::a:procedure")))
105 105
106(test-equal "extract-imports: matches things before a comma"
107 (list "MASS")
108 (set->list ((@ (guix import cran) extract-imports)
109 "check_installed(\"MASS\",")))
110
106(test-equal "r-minimal is not a cran package" 111(test-equal "r-minimal is not a cran package"
107 #f 112 #f
108 ((@@ (guix import cran) cran-package?) r-minimal)) 113 ((@@ (guix import cran) cran-package?) r-minimal))