commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevencasw...@apache.org
Subject svn commit: r234408 - /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java
Date Mon, 22 Aug 2005 00:57:22 GMT
Author: stevencaswell
Date: Sun Aug 21 17:57:19 2005
New Revision: 234408

URL: http://svn.apache.org/viewcvs?rev=234408&view=rev
Log:
increase WordUtils test coverage as reported by clover

Modified:
    jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java

Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java?rev=234408&r1=234407&r2=234408&view=diff
==============================================================================
--- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java
(original)
+++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/WordUtilsTest.java
Sun Aug 21 17:57:19 2005
@@ -260,6 +260,10 @@
         assertEquals("i aM hERE 123", WordUtils.swapCase("I Am Here 123") );
         assertEquals("I AM here 123", WordUtils.swapCase("i am HERE 123") );
         assertEquals("i am here 123", WordUtils.swapCase("I AM HERE 123") );
+
+        String test = "This String contains a TitleCase character: \u01C8";
+        String expect = "tHIS sTRING CONTAINS A tITLEcASE CHARACTER: \u01C9";
+        assertEquals(expect, WordUtils.swapCase(test));
     }
 
 }



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


Mime
View raw message