jakarta-regexp-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r231379 - /jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java
Date Thu, 11 Aug 2005 02:55:20 GMT
Author: vgritsenko
Date: Wed Aug 10 19:55:16 2005
New Revision: 231379

URL: http://svn.apache.org/viewcvs?rev=231379&view=rev
Log:
add test for Bug #36106

Modified:
    jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java

Modified: jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java
URL: http://svn.apache.org/viewcvs/jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java?rev=231379&r1=231378&r2=231379&view=diff
==============================================================================
--- jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java (original)
+++ jakarta/regexp/trunk/src/java/org/apache/regexp/RETest.java Wed Aug 10 19:55:16 2005
@@ -521,6 +521,11 @@
         actual = r.subst("\r\na\r\n",
                          "b", RE.REPLACE_BACKREFERENCES);
         assertEquals("Wrong subst() result", "\r\nb\r\n", actual);
+
+        // Test for Bug #36106
+        r = new RE("fo(o)");
+        actual = r.subst("foo", "$1", RE.REPLACE_BACKREFERENCES);
+        assertEquals("Wrong subst() result", "o", actual);
     }
 
     public void assertEquals(String message, String expected, String actual)



---------------------------------------------------------------------
To unsubscribe, e-mail: regexp-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: regexp-dev-help@jakarta.apache.org


Mime
View raw message