/libcore/luni/src/test/java/libcore/java/text/ |
D | BreakIteratorTest.java | 88 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()
|
D | DecimalFormatTest.java | 698 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/ |
D | TCKLocalizedFieldParser.java | 98 …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/ |
D | TestCharLiteralParser.java | 105 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
|
D | TestStringLiteralParser.java | 108 …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
|
D | TestNumberParser.java | 167 …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()
|