diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2015-05-04 21:44:52 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2015-05-04 23:30:51 +0200 |
| commit | 6568d2bd6e4e047dd95b00a7a6e7501a16491eb5 (patch) | |
| tree | f5f16ed73cbb0486fd00a8147707ce75b2132df4 /tests/utils.scm | |
| parent | e89431bf016830a919ec2430889f6c2679aab408 (diff) | |
search-paths: Add 'evaluate-search-paths', from (guix scripts package).
* guix/scripts/package.scm (with-null-error-port,
evaluate-search-paths): Move to...
* guix/search-paths.scm: ... here.
* guix/utils.scm (string-tokenize*): Move to...
* guix/search-paths.scm: ... here.
* tests/utils.scm ("string-tokenize*"): Adjust accordingly.
Diffstat (limited to 'tests/utils.scm')
| -rw-r--r-- | tests/utils.scm | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/utils.scm b/tests/utils.scm index a662c9a8d38..e03a07b2f58 100644 --- a/tests/utils.scm +++ b/tests/utils.scm | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | ;;; GNU Guix --- Functional package management for GNU | 1 | ;;; GNU Guix --- Functional package management for GNU |
| 2 | ;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> | 2 | ;;; Copyright © 2012, 2013, 2014, 2015 Ludovic Courtès <ludo@gnu.org> |
| 3 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> | 3 | ;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org> |
| 4 | ;;; | 4 | ;;; |
| 5 | ;;; This file is part of GNU Guix. | 5 | ;;; This file is part of GNU Guix. |
| @@ -82,10 +82,11 @@ | |||
| 82 | ("foo" "bar" "baz") | 82 | ("foo" "bar" "baz") |
| 83 | ("foo" "bar" "") | 83 | ("foo" "bar" "") |
| 84 | ("foo" "bar" "baz")) | 84 | ("foo" "bar" "baz")) |
| 85 | (list (string-tokenize* "foo" ":") | 85 | (let ((string-tokenize* (@@ (guix search-paths) string-tokenize*))) |
| 86 | (string-tokenize* "foo;bar;baz" ";") | 86 | (list (string-tokenize* "foo" ":") |
| 87 | (string-tokenize* "foo!bar!" "!") | 87 | (string-tokenize* "foo;bar;baz" ";") |
| 88 | (string-tokenize* "foo+-+bar+-+baz" "+-+"))) | 88 | (string-tokenize* "foo!bar!" "!") |
| 89 | (string-tokenize* "foo+-+bar+-+baz" "+-+")))) | ||
| 89 | 90 | ||
| 90 | (test-equal "string-replace-substring" | 91 | (test-equal "string-replace-substring" |
| 91 | '("foo BAR! baz" | 92 | '("foo BAR! baz" |
