Improve filter for `path-string?'.
original commit: a39001911c6b2e601e2290d198b92ce7e54bd91d
This commit is contained in:
parent
7d25bb6ba5
commit
177ecf23ca
|
@ -875,6 +875,8 @@
|
|||
|
||||
|
||||
;;Path tests
|
||||
(tc-e (path-string? "foo") B)
|
||||
(tc-e (path-string? (string->path "foo")) #:ret (ret B (-FS -top -bot)))
|
||||
(tc-e (bytes->path #"foo" 'unix) -SomeSystemPath)
|
||||
(tc-e (bytes->path #"foo") -Path)
|
||||
(tc-e (bytes->path-element #"foo") -Path)
|
||||
|
|
|
@ -790,7 +790,9 @@
|
|||
;; path manipulation
|
||||
|
||||
[path? (make-pred-ty -Path)]
|
||||
[path-string? (-> Univ B)]
|
||||
[path-string? (asym-pred Univ B
|
||||
(-FS (-filter (Un -Path -String) 0)
|
||||
(-not-filter -Path 0)))]
|
||||
[path-for-some-system? (make-pred-ty -SomeSystemPath)]
|
||||
|
||||
[string->path (-> -String -Path)]
|
||||
|
|
Loading…
Reference in New Issue
Block a user