apparent typo in collection-search looks like error should be raise-argument-error (#3285)
This commit is contained in:
parent
38d92bdb30
commit
39a8a50d0a
|
@ -59,3 +59,7 @@
|
||||||
l))
|
l))
|
||||||
(when file
|
(when file
|
||||||
(check-search-finds-one `(lib ,(~a coll "/" file)))))))
|
(check-search-finds-one `(lib ,(~a coll "/" file)))))))
|
||||||
|
|
||||||
|
(check-exn
|
||||||
|
#px"contract violation"
|
||||||
|
(λ () (collection-search 1234 #:combine list)))
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
#:break? [break? (lambda (r) #f)]
|
#:break? [break? (lambda (r) #f)]
|
||||||
#:all-possible-roots? [all-possible-roots? #f])
|
#:all-possible-roots? [all-possible-roots? #f])
|
||||||
(unless (normalized-lib-module-path? mp)
|
(unless (normalized-lib-module-path? mp)
|
||||||
(error 'collection-search "normalized-lib-module-path?" mp))
|
(raise-argument-error 'collection-search "normalized-lib-module-path?" mp))
|
||||||
(define els (string-split (cadr mp) "/"))
|
(define els (string-split (cadr mp) "/"))
|
||||||
(define coll-str (car els))
|
(define coll-str (car els))
|
||||||
(define coll-sym (string->symbol coll-str))
|
(define coll-sym (string->symbol coll-str))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user