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