HCoop
/
bpt
/
guile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21682b2
)
(match:string): New tests.
author
Kevin Ryde
<user42@zip.com.au>
Tue, 28 Sep 2004 23:53:02 +0000
(23:53 +0000)
committer
Kevin Ryde
<user42@zip.com.au>
Tue, 28 Sep 2004 23:53:02 +0000
(23:53 +0000)
test-suite/tests/regexp.test
patch
|
blob
|
blame
|
history
diff --git
a/test-suite/tests/regexp.test
b/test-suite/tests/regexp.test
index
06550f2
..
c5d0d3a
100644
(file)
--- a/
test-suite/tests/regexp.test
+++ b/
test-suite/tests/regexp.test
@@
-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
;;;