Home
last modified time | relevance | path

Searched refs:expectedIndex (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKZoneIdPrinterParser.java213 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_plain() argument
216 test(text, expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_plain()
221 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_prefix() argument
226 expectedIndex + 3, in test_ZoneId_parseSuccess_prefix()
233 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_suffix() argument
236 test(text + "XXX", expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_suffix()
241 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_caseSensitive() argument
252 … test(text.toLowerCase(Locale.ENGLISH), expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_caseSensitive() local
258 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_caseInsensitive() argument
261 … test(text.toLowerCase(Locale.ENGLISH), expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_caseInsensitive() local
[all …]
DTCKPadPrinterParser.java130 …public void test_parseStrict(String text, int expectedIndex, int expectedErrorIndex, Number expect… in test_parseStrict() argument
133 assertEquals(pos.getIndex(), expectedIndex); in test_parseStrict() local
171 …public void test_parseLenient(String text, int expectedIndex, int expectedErrorIndex, Number expec… in test_parseLenient() argument
174 assertEquals(pos.getIndex(), expectedIndex); in test_parseLenient() local
/libcore/ojluni/src/test/java/text/CharacterIterator/
DCharacterIteratorTest.java251 int expectedIndex = iter.getEndIndex(); in TestPathologicalCases() local
256 if (actualIndex != expectedIndex - 1) in TestPathologicalCases()
257 errln("last() failed: expected " + (expectedIndex - 1) + ", got " + actualIndex); in TestPathologicalCases()
261 if (actualIndex != expectedIndex) in TestPathologicalCases()
262 errln("next() after last() failed: expected " + expectedIndex + ", got " + actualIndex); in TestPathologicalCases()
266 if (actualIndex != expectedIndex) in TestPathologicalCases()
267 … errln("second next() after last() failed: expected " + expectedIndex + ", got " + actualIndex); in TestPathologicalCases()
/libcore/ojluni/src/test/java/lang/invoke/MethodHandles/
DTestTableSwitch.java174 IntFunction<MethodHandle> makeTestCase = expectedIndex -> { in testVoidHandles()
175 IntConsumer test = actualIndex -> assertEquals(actualIndex, expectedIndex); in testVoidHandles()
/libcore/luni/src/test/java/libcore/java/text/
DDecimalFormatTest.java870 int expectedIndex) { in assertParsed() argument
871 ParsePosition expectedPos = new ParsePosition(expectedIndex); in assertParsed()