mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
(match:string): New tests.
This commit is contained in:
parent
21682b207e
commit
38923713f1
1 changed files with 12 additions and 0 deletions
|
@ -58,6 +58,18 @@
|
|||
(pass-if-exception "bad arg 3" exception:wrong-type-arg
|
||||
(make-regexp "xyz" regexp/icase 'abc)))
|
||||
|
||||
;;;
|
||||
;;; match:string
|
||||
;;;
|
||||
|
||||
(with-test-prefix "match:string"
|
||||
|
||||
(pass-if "foo"
|
||||
(string=? "foo" (match:string (string-match ".*" "foo"))))
|
||||
|
||||
(pass-if "foo offset 1"
|
||||
(string=? "foo" (match:string (string-match ".*" "foo" 1)))))
|
||||
|
||||
;;;
|
||||
;;; regexp-quote
|
||||
;;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue