Lines Matching refs:nsb
247 NumberStringBuilder nsb; in testCodePoints() local
248 assertEquals("First is -1 on empty string", -1, nsb.getFirstCodePoint()); in testCodePoints()
249 assertEquals("Last is -1 on empty string", -1, nsb.getLastCodePoint()); in testCodePoints()
250 assertEquals("Length is 0 on empty string", 0, nsb.codePointCount()); in testCodePoints()
252 nsb.append(u"q", UNUM_FIELD_COUNT, status); in testCodePoints()
254 assertEquals("First is q", u'q', nsb.getFirstCodePoint()); in testCodePoints()
255 assertEquals("Last is q", u'q', nsb.getLastCodePoint()); in testCodePoints()
256 assertEquals("0th is q", u'q', nsb.codePointAt(0)); in testCodePoints()
257 assertEquals("Before 1st is q", u'q', nsb.codePointBefore(1)); in testCodePoints()
258 assertEquals("Code point count is 1", 1, nsb.codePointCount()); in testCodePoints()
261 nsb.append(u"", UNUM_FIELD_COUNT, status); in testCodePoints()
263 assertEquals("First is still q", u'q', nsb.getFirstCodePoint()); in testCodePoints()
264 assertEquals("Last is space ship", 128640, nsb.getLastCodePoint()); in testCodePoints()
265 assertEquals("1st is space ship", 128640, nsb.codePointAt(1)); in testCodePoints()
266 assertEquals("Before 1st is q", u'q', nsb.codePointBefore(1)); in testCodePoints()
267 assertEquals("Before 3rd is space ship", 128640, nsb.codePointBefore(3)); in testCodePoints()
268 assertEquals("Code point count is 2", 2, nsb.codePointCount()); in testCodePoints()