harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r418843 - /incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
Date Mon, 03 Jul 2006 20:46:47 GMT
Author: tellison
Date: Mon Jul  3 13:46:46 2006
New Revision: 418843

URL: http://svn.apache.org/viewvc?rev=418843&view=rev
Log:
Add regression test for HARMONY-674 (Pattern throws ArrayIndexOutOfBoundsException when mathching
regexp)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java?rev=418843&r1=418842&r2=418843&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/regex/src/test/java/org/apache/harmony/tests/java/util/regex/MatcherTest.java
Mon Jul  3 13:46:46 2006
@@ -638,6 +638,14 @@
 
 	}
 
+	/*
+	 * Regression test for HARMONY-674
+	 */
+    public void testPatternMatcher() throws Exception {
+        Pattern pattern = Pattern.compile("(?:\\d+)(?:pt)");
+        assertTrue(pattern.matcher("14pt").matches());
+    } 
+
 	public static void main(String[] args) {
 		junit.textui.TestRunner.run(MatcherTest.class);
 	}



Mime
View raw message