commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [09/14] [text] added tests to verify LANG-673
Date Fri, 05 May 2017 11:51:25 GMT
added tests to verify LANG-673


Project: http://git-wip-us.apache.org/repos/asf/commons-text/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-text/commit/c2a8f930
Tree: http://git-wip-us.apache.org/repos/asf/commons-text/tree/c2a8f930
Diff: http://git-wip-us.apache.org/repos/asf/commons-text/diff/c2a8f930

Branch: refs/heads/master
Commit: c2a8f930da784a361a3533fa59457f2757441040
Parents: 44847c5
Author: Amey Jadiye <ameyjadiye@gmail.com>
Authored: Thu May 4 23:20:41 2017 +0530
Committer: Amey Jadiye <ameyjadiye@gmail.com>
Committed: Thu May 4 23:20:41 2017 +0530

----------------------------------------------------------------------
 src/test/java/org/apache/commons/text/WordUtilsTest.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-text/blob/c2a8f930/src/test/java/org/apache/commons/text/WordUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/text/WordUtilsTest.java b/src/test/java/org/apache/commons/text/WordUtilsTest.java
index dbb7e80..6fce157 100644
--- a/src/test/java/org/apache/commons/text/WordUtilsTest.java
+++ b/src/test/java/org/apache/commons/text/WordUtilsTest.java
@@ -472,6 +472,11 @@ public class WordUtilsTest {
         assertEquals("01234", WordUtils.abbreviate("0123456789", 5, 2,""));
     }
 
+    @Test
+    public void testLANG673() throws Exception {
+        assertEquals("01",WordUtils.abbreviate("01 23 45 67 89", 0, 40, ""));
+        assertEquals("01 23 45 67",WordUtils.abbreviate("01 23 45 67 89", 10, 40, ""));
+    }
 
     @Test
     public void testLANG1292() throws Exception {


Mime
View raw message