Skip to content

Commit 16b89f5

Browse files
committed
Add explicit simple tests
1 parent 28cbf74 commit 16b89f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/test/java/org/apache/commons/lang3/StringUtilsTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2857,14 +2857,14 @@ public void testToCodePoints() {
28572857
final int orphanedHighSurrogate = 0xD801;
28582858
final int orphanedLowSurrogate = 0xDC00;
28592859
final int supplementary = 0x2070E;
2860-
2861-
final int[] codePoints = {'a', orphanedHighSurrogate, 'b', 'c', supplementary,
2862-
'd', orphanedLowSurrogate, 'e'};
2860+
final int[] codePoints = { 'a', orphanedHighSurrogate, 'b', 'c', supplementary, 'd', orphanedLowSurrogate, 'e' };
28632861
final String s = new String(codePoints, 0, codePoints.length);
28642862
assertArrayEquals(codePoints, StringUtils.toCodePoints(s));
2865-
28662863
assertNull(StringUtils.toCodePoints(null));
28672864
assertArrayEquals(ArrayUtils.EMPTY_INT_ARRAY, StringUtils.toCodePoints(""));
2865+
assertArrayEquals(new int[] { 'a' }, StringUtils.toCodePoints("a"));
2866+
assertArrayEquals(new int[] { 'a', 'b' }, StringUtils.toCodePoints("ab"));
2867+
assertArrayEquals(new int[] { 'a', 'b', 'c' }, StringUtils.toCodePoints("abc"));
28682868
}
28692869

28702870
/**

0 commit comments

Comments
 (0)