You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/05/05 11:51:25 UTC

[09/14] [text] added tests to verify LANG-673

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 <am...@gmail.com>
Authored: Thu May 4 23:20:41 2017 +0530
Committer: Amey Jadiye <am...@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 {