summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/test/java/com/yahoo/text/TextTestCase.java
diff options
context:
space:
mode:
Diffstat (limited to 'vespajlib/src/test/java/com/yahoo/text/TextTestCase.java')
-rw-r--r--vespajlib/src/test/java/com/yahoo/text/TextTestCase.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/vespajlib/src/test/java/com/yahoo/text/TextTestCase.java b/vespajlib/src/test/java/com/yahoo/text/TextTestCase.java
index 2639882230f..c82eba0246f 100644
--- a/vespajlib/src/test/java/com/yahoo/text/TextTestCase.java
+++ b/vespajlib/src/test/java/com/yahoo/text/TextTestCase.java
@@ -73,6 +73,7 @@ public class TextTestCase {
String withSurrogates = fromCP("abc", new int[]{0x10F000, 0x10F001, 0x10F002}, "def");
assertEquals(withSurrogates, Text.substringByCodepoints(withSurrogates, 0, 11));
assertEquals(withSurrogates, Text.substringByCodepoints(withSurrogates, 0, 20));
+ assertEquals("", Text.substringByCodepoints(withSurrogates, 10, 11));
assertEquals(fromCP("bc", new int[]{0x10F000, 0x10F001}, ""),
Text.substringByCodepoints(withSurrogates, 1, 5));
assertEquals(fromCP("", new int[]{0x10F001}, ""),