Home
last modified time | relevance | path

Searched refs:expectedPos (Results 1 – 6 of 6) sorted by relevance

/libcore/luni/src/test/java/libcore/java/text/
DBreakIteratorTest.java88 int expectedPos = 0; in assertExpectedWordBoundaries() local
90 assertEquals(expectedPos, pos); in assertExpectedWordBoundaries()
92 expectedPos += 5; // The five characters until the end of this word. in assertExpectedWordBoundaries()
94 assertEquals(expectedPos, pos); in assertExpectedWordBoundaries()
96 expectedPos += 1; // The space before the start of the next word... in assertExpectedWordBoundaries()
97 if (expectedPos > s.length()) { in assertExpectedWordBoundaries()
98 expectedPos = BreakIterator.DONE; // ...unless we're done. in assertExpectedWordBoundaries()
101 assertEquals(expectedPos, pos); in assertExpectedWordBoundaries()
DDecimalFormatTest.java698 ParsePosition expectedPos = new ParsePosition(expectedIndex); in assertParsed() local
703 describeParseResult(expected, expectedPos), describeParseResult(result, pos)); in assertParsed()
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKLocalizedFieldParser.java98 …public void test_parse_textField(String pattern, String text, int pos, int expectedPos, long expec… in test_parse_textField() argument
123 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textField() local
125 assertEquals(ppos.getIndex(), expectedPos, "Incorrect ending parse position"); in test_parse_textField() local
149 …public void test_parse_textLocalDate(String pattern, String text, int pos, int expectedPos, LocalD… in test_parse_textLocalDate() argument
155 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textLocalDate() local
157 assertEquals(ppos.getIndex(), expectedPos, "Incorrect ending parse position"); in test_parse_textLocalDate() local
186 …public void test_parse_WeekBasedYear(String pattern, String text, int pos, int expectedPos, LocalD… in test_parse_WeekBasedYear() argument
192 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_WeekBasedYear() local
195 assertEquals(ppos.getIndex(), expectedPos, "Incorrect ending parse position"); in test_parse_WeekBasedYear() local
/libcore/ojluni/src/test/java/time/test/java/time/format/
DTestCharLiteralParser.java105 String text, int pos, int expectedPos) { in test_parse_success() argument
110 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success() local
112 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success() local
DTestStringLiteralParser.java108 …c void test_parse_success(String s, boolean caseSensitive, String text, int pos, int expectedPos) { in test_parse_success() argument
113 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success() local
115 assertEquals(ppos.getIndex(), expectedPos); in test_parse_success() local
DTestNumberParser.java167 …h, SignStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedV… in test_parse_fresh() argument
176 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_fresh() local
179 assertEquals(ppos.getIndex(), expectedPos + subsequentWidth); in test_parse_fresh()
187 …h, SignStyle signStyle, int subsequentWidth, String text, int pos, int expectedPos, long expectedV… in test_parse_textField() argument
196 assertEquals(ppos.getErrorIndex(), expectedPos); in test_parse_textField() local
199 assertEquals(ppos.getIndex(), expectedPos + subsequentWidth); in test_parse_textField()