commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1381826 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java
Date Fri, 07 Sep 2012 00:43:01 GMT
Author: sebb
Date: Fri Sep  7 00:43:01 2012
New Revision: 1381826

URL: http://svn.apache.org/viewvc?rev=1381826&view=rev
Log:
Add tests for leading signs

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java?rev=1381826&r1=1381825&r2=1381826&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/StringUtilsIsTest.java
Fri Sep  7 00:43:01 2012
@@ -142,6 +142,8 @@ public class StringUtilsIsTest extends T
         assertEquals(false, StringUtils.isNumeric("hkHKHik6iUGHKJgU7tUJgKJGI87GIkug"));
         assertEquals(false, StringUtils.isNumeric("_"));
         assertEquals(false, StringUtils.isNumeric("hkHKHik*khbkuh"));
+        assertEquals(false, StringUtils.isNumeric("+123"));
+        assertEquals(false, StringUtils.isNumeric("-123"));
     }
 
     public void testIsNumericSpace() {



Mime
View raw message