commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [07/14] [lang] LANG-1300: Reverted CharSequenceUtilsTest to original
Date Fri, 17 Mar 2017 11:05:44 GMT
LANG-1300: Reverted CharSequenceUtilsTest to original


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

Branch: refs/heads/master
Commit: 66f8569ecc8173d61b7d182f4da0223ae7dbda38
Parents: 0181c80
Author: MarkDacek <mark.dacek@richmond.edu>
Authored: Mon Mar 6 21:55:39 2017 -0500
Committer: MarkDacek <mark.dacek@richmond.edu>
Committed: Mon Mar 6 21:55:39 2017 -0500

----------------------------------------------------------------------
 .../commons/lang3/CharSequenceUtilsTest.java    | 36 --------------------
 1 file changed, 36 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-lang/blob/66f8569e/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java
index 53eac3d..6ab9aae 100644
--- a/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java
+++ b/src/test/java/org/apache/commons/lang3/CharSequenceUtilsTest.java
@@ -188,41 +188,5 @@ public class CharSequenceUtilsTest {
         assertArrayEquals(expected, CharSequenceUtils.toCharArray(builder));
         assertArrayEquals(expected, CharSequenceUtils.toCharArray(builder.toString()));
     }
-    
-    @Test
-    public void testLastIndexOfSupplementaryCharacters(){
-    	final int CODE_POINT = 0x2070E;
-    	StringBuilder builder = new StringBuilder();
-    	builder.appendCodePoint(CODE_POINT);
-    	assertEquals(0, CharSequenceUtils.lastIndexOf(builder, CODE_POINT, 0));
-    	char[] tmp = {(char) 55361};
-    	builder = new StringBuilder();
-    	builder.append(tmp);
-    	assertEquals(-1, CharSequenceUtils.lastIndexOf(builder, CODE_POINT, 0));
-    }
-    
-    @Test
-    public void testIndexOfSupplementaryCharacters(){
-    	final int CODE_POINT = 0x2070E;
-    	StringBuilder builder = new StringBuilder();
-    	builder.appendCodePoint(CODE_POINT);
-    	assertEquals(0, CharSequenceUtils.indexOf(builder, CODE_POINT, 0));
-    	assertEquals(0, CharSequenceUtils.lastIndexOf(builder, CODE_POINT, 0));
-    	assertEquals(0, StringUtils.lastIndexOf(builder, CODE_POINT, 0));
-    	assertEquals(0, StringUtils.indexOf(builder, CODE_POINT, 0));
-    	assertEquals(0, StringUtils.indexOf(builder,  CODE_POINT));
-    	assertEquals(0, StringUtils.lastIndexOf(builder, CODE_POINT));
-    	assertTrue (StringUtils.contains(builder, CODE_POINT));
-    	char[] tmp = {(char) 55361};
-    	builder = new StringBuilder();
-    	builder.append(tmp);
-    	assertEquals(-1, CharSequenceUtils.indexOf(builder, CODE_POINT, 0));
-    	assertEquals(-1, CharSequenceUtils.lastIndexOf(builder, CODE_POINT, 0));
-    	assertEquals(-1, StringUtils.lastIndexOf(builder, CODE_POINT, 0));
-    	assertEquals(-1, StringUtils.indexOf(builder, CODE_POINT, 0));
-    	assertEquals(-1, StringUtils.indexOf(builder,  CODE_POINT));
-    	assertEquals(-1, StringUtils.lastIndexOf(builder, CODE_POINT));
-    	assertFalse (StringUtils.contains(builder, CODE_POINT));
-    }
 
 }


Mime
View raw message