commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject [lang] Add sanity check test.
Date Tue, 26 Jan 2016 18:47:33 GMT
Repository: commons-lang
Updated Branches:
  refs/heads/master 8bb352631 -> 04a5d83ae


Add sanity check test.

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

Branch: refs/heads/master
Commit: 04a5d83aecc325f87696c83b1a5dba45584ddaa7
Parents: 8bb3526
Author: ggregory <ggregory@apache.org>
Authored: Tue Jan 26 10:47:30 2016 -0800
Committer: ggregory <ggregory@apache.org>
Committed: Tue Jan 26 10:47:30 2016 -0800

----------------------------------------------------------------------
 src/test/java/org/apache/commons/lang3/StringUtilsTest.java | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/04a5d83a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
index d6fc7ae..654a144 100644
--- a/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/StringUtilsTest.java
@@ -2472,6 +2472,9 @@ public class StringUtilsTest {
 
     @Test
     public void testNormalizeSpace() {
+        // Java says a non-breaking whitespace is not a whitespace.
+        assertFalse(Character.isWhitespace('\u00A0'));
+        //
         assertNull(StringUtils.normalizeSpace(null));
         assertEquals("", StringUtils.normalizeSpace(""));
         assertEquals("", StringUtils.normalizeSpace(" "));


Mime
View raw message