Searched refs:stringWithSurrogates (Results 1 – 1 of 1) sorted by relevance
356 String stringWithSurrogates = "hello " + surrogatePair + " world"; in testSurrogateIndexOf() local358 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar), "hello ".length()); in testSurrogateIndexOf()359 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 2), "hello ".length()); in testSurrogateIndexOf()360 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 6), 6); in testSurrogateIndexOf()361 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar, 7), -1); in testSurrogateIndexOf()363 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar - 0x10000), -1); in testSurrogateIndexOf()364 Assert.assertEquals(stringWithSurrogates.indexOf(supplementaryChar | 0x80000000), -1); in testSurrogateIndexOf()