Vin Shelton <acs(a)xemacs.org> writes:
Arnaud Giersch donated this test to verify his regexp fix to cure
the
gnus infloop. Empirically it seems to work: it fails on
21.4.16 and passes on the latest 21.4 sources in CVS.
Thanks for the patch, Arnaud!
- Vin
tests/ChangeLog addition:
2005-02-01 Vin Shelton <acs(a)xemacs.org>
* automated/regexp-tests.el: Added an additional shy groups test
authored by Arnaud Giersch <arnaud.giersch(a)free.fr>
21.4 source patch:
Diff command: cvs -q diff -u
Files affected: tests/automated/regexp-tests.el
Index: tests/automated/regexp-tests.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/tests/automated/regexp-tests.el,v
retrieving revision 1.2.2.9
diff -a -u -u -r1.2.2.9 regexp-tests.el
--- tests/automated/regexp-tests.el 2005/01/16 02:39:18 1.2.2.9
+++ tests/automated/regexp-tests.el 2005/02/02 03:15:26
@@ -442,5 +442,10 @@
(Assert (string= text2 (match-string 0 text2)))
(Assert (string= "a" (match-string 1 text2)))
(Assert (null (match-string 2 text2)))
+
+ ;; Test Arnaud Giersch's shy group fix
+ (Assert (progn (string-match "\\(a\\)" "a")
+ (string-match "\\(?:a\\)" "a")
+ (not (match-beginning 1))))
)
APPROVE COMMIT 21.4