mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2026-04-06 21:20:33 +02:00
search-paths: Export 'string-tokenize*'.
* guix/search-paths.scm (string-tokenize*): Export.
* tests/utils.scm ("string-tokenize*"): Adjust accordingly.
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
#:use-module ((guix config) #:select (%gzip))
|
||||
#:use-module (guix utils)
|
||||
#:use-module ((guix store) #:select (%store-prefix store-path-package-name))
|
||||
#:use-module ((guix search-paths) #:select (string-tokenize*))
|
||||
#:use-module (srfi srfi-1)
|
||||
#:use-module (srfi srfi-11)
|
||||
#:use-module (srfi srfi-64)
|
||||
@@ -82,11 +83,10 @@
|
||||
("foo" "bar" "baz")
|
||||
("foo" "bar" "")
|
||||
("foo" "bar" "baz"))
|
||||
(let ((string-tokenize* (@@ (guix search-paths) string-tokenize*)))
|
||||
(list (string-tokenize* "foo" ":")
|
||||
(string-tokenize* "foo;bar;baz" ";")
|
||||
(string-tokenize* "foo!bar!" "!")
|
||||
(string-tokenize* "foo+-+bar+-+baz" "+-+"))))
|
||||
(list (string-tokenize* "foo" ":")
|
||||
(string-tokenize* "foo;bar;baz" ";")
|
||||
(string-tokenize* "foo!bar!" "!")
|
||||
(string-tokenize* "foo+-+bar+-+baz" "+-+")))
|
||||
|
||||
(test-equal "string-replace-substring"
|
||||
'("foo BAR! baz"
|
||||
|
||||
Reference in New Issue
Block a user