aboutsummaryrefslogtreecommitdiff
path: root/tests/opam.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2019-02-01 15:58:12 +0100
committerJulien Lepiller <julien@lepiller.eu>2019-02-05 22:33:06 +0100
commit0f4432c620f8d569ef29ca74bad2b7eebd803441 (patch)
tree8797e7fa4bbce816cccd81a75601ecd5fa60b906 /tests/opam.scm
parent6c8666b4513ba66bb1de0c129eec8a5623fddfeb (diff)
downloadpatches-0f4432c620f8d569ef29ca74bad2b7eebd803441.tar
patches-0f4432c620f8d569ef29ca74bad2b7eebd803441.tar.gz
import: opam: Fix conditions.
* guix/import/opam.scm (condition-eq, condition-neq): The first argument can be empty. * tests/opam.scm: Add test case.
Diffstat (limited to 'tests/opam.scm')
-rw-r--r--tests/opam.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/opam.scm b/tests/opam.scm
index e0ec5ef3d4..e8c0d15198 100644
--- a/tests/opam.scm
+++ b/tests/opam.scm
@@ -192,6 +192,8 @@ url {
("{>= \"0.2.0\" | build}" . (condition-or
(condition-greater-or-equal
(condition-string "0.2.0"))
- (condition-var "build"))))))
+ (condition-var "build")))
+ ("{ = \"1.0+beta19\" }" . (condition-eq
+ (condition-string "1.0+beta19"))))))
(test-end "opam")