Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 399) sorted by relevance

12345678910>>...16

/libcore/ojluni/src/test/java/time/test/java/time/temporal/
DTestChronoUnit.java108 public void test_yearsBetween(LocalDate start, LocalDate end, long expected) { in test_yearsBetween()
109 assertEquals(YEARS.between(start, end), expected); in test_yearsBetween() local
113 public void test_yearsBetweenReversed(LocalDate start, LocalDate end, long expected) { in test_yearsBetweenReversed()
118 …ublic void test_yearsBetween_LocalDateTimeSameTime(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_LocalDateTimeSameTime()
123 …blic void test_yearsBetween_LocalDateTimeLaterTime(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_LocalDateTimeLaterTime()
132 … public void test_yearsBetween_ZonedDateSameOffset(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_ZonedDateSameOffset()
137 …public void test_yearsBetween_ZonedDateLaterOffset(LocalDate start, LocalDate end, long expected) { in test_yearsBetween_ZonedDateLaterOffset()
181 public void test_monthsBetween(LocalDate start, LocalDate end, long expected) { in test_monthsBetween()
182 assertEquals(MONTHS.between(start, end), expected); in test_monthsBetween() local
186 public void test_monthsBetweenReversed(LocalDate start, LocalDate end, long expected) { in test_monthsBetweenReversed()
[all …]
/libcore/ojluni/src/test/java/util/zip/
DChecksumBase.java39 public static void testAll(Checksum checksum, long expected) { in testAll()
54 private static void testBytes(Checksum checksum, long expected) { in testBytes()
62 private static void testByteArray(Checksum checksum, long expected) { in testByteArray()
68 private static void testWrappedByteBuffer(Checksum checksum, long expected) { in testWrappedByteBuffer()
75 private static void testReadonlyByteBuffer(Checksum checksum, long expected) { in testReadonlyByteBuffer()
82 private static void testDirectByteBuffer(Checksum checksum, long expected) { in testDirectByteBuffer()
91 private static void checkChecksum(Checksum checksum, long expected) { in checkChecksum()
99 private static void testByteArrayOffset(Checksum checksum, long expected) { in testByteArrayOffset()
109 private static void testDirectByteBufferOffset(Checksum checksum, long expected) { in testDirectByteBufferOffset()
123 private static void testLittleEndianDirectByteBufferOffset(Checksum checksum, long expected) { in testLittleEndianDirectByteBufferOffset()
[all …]
/libcore/ojluni/src/test/java/nio/file/Path/
DPathOps.java65 void check(Object result, String expected) { in check()
77 void check(Object result, boolean expected) { in check()
81 PathOps root(String expected) { in root()
83 check(path.getRoot(), expected); in root() local
87 PathOps parent(String expected) { in parent()
89 check(path.getParent(), expected); in parent() local
93 PathOps name(String expected) { in name()
95 check(path.getFileName(), expected); in name() local
99 PathOps element(int index, String expected) { in element()
101 check(path.getName(index), expected); in element() local
[all …]
/libcore/ojluni/src/test/java/lang/String/CompactString/
DLastIndexOf.java67 public void testLastIndexOf(String str, int ch, int expected) { in testLastIndexOf()
73 expected, in testLastIndexOf() local
113 public void testLastIndexOf(String str, int ch, int fromIndex, int expected) { in testLastIndexOf()
119 expected, in testLastIndexOf() local
154 public void testLastIndexOf(String str, String anotherString, int expected) { in testLastIndexOf()
160 expected, in testLastIndexOf() local
212 int fromIndex, int expected) { in testLastIndexOf()
218 expected, in testLastIndexOf() local
DIndexOf.java72 public void testIndexOf(String str, int ch, int expected) { in testIndexOf()
75 assertEquals(data.indexOf(ch), expected, String.format( in testIndexOf() local
111 public void testIndexOf(String str, int ch, int fromIndex, int expected) { in testIndexOf()
117 expected, in testIndexOf() local
166 public void testIndexOf(String str, String anotherString, int expected) { in testIndexOf()
172 expected, in testIndexOf() local
236 int expected) { in testIndexOf()
242 expected, in testIndexOf() local
DReplace.java66 String expected) { in testReplace()
72 expected, in testReplace() local
104 CharSequence replacement, String expected) { in testReplace()
110 expected, in testReplace() local
/libcore/luni/src/test/java/libcore/java/util/
DCalendarBuilderTest.java38 GregorianCalendar expected = new GregorianCalendar(); in test_default_values() local
48 GregorianCalendar expected = new GregorianCalendar(); in test_setCalendarType_iso8601() local
87 GregorianCalendar expected = new GregorianCalendar(); in test_setDate() local
96 GregorianCalendar expected = new GregorianCalendar(); in test_setTimeOfDay() local
110 GregorianCalendar expected = new GregorianCalendar(); in test_setWeekDate() local
126 GregorianCalendar expected = new GregorianCalendar(); in test_setLenient() local
137 GregorianCalendar expected = new GregorianCalendar(Locale.GERMANY); in test_setLocale() local
148 GregorianCalendar expected = new GregorianCalendar(th); in test_setLocale_thTH() local
157 GregorianCalendar expected = new GregorianCalendar(); in test_set() local
187 GregorianCalendar expected = new GregorianCalendar(); in test_setFields() local
[all …]
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidChecksumTest.java40 private void adler32Test(byte[] values, long expected) { in adler32Test()
45 assertEquals(adler.getValue(), expected); in adler32Test() local
52 assertEquals(adler.getValue(), expected); in adler32Test() local
55 private void cRC32Test(byte[] values, long expected) { in cRC32Test()
60 assertEquals(crc.getValue(), expected); in cRC32Test() local
67 assertEquals(crc.getValue(), expected); in cRC32Test() local
/libcore/ojluni/src/test/java/nio/Buffer/
DOrderChar.java37 private static void ckCharBuffer(CharBuffer buf, ByteOrder expected) { in ckCharBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckCharBuffer() local
39 ck(buf.duplicate().order(), expected); in ckCharBuffer() local
40 ck(buf.slice().order(), expected); in ckCharBuffer() local
42 ck(buf.subSequence(buf.position(), buf.remaining()).order(), expected); in ckCharBuffer() local
43 ck(buf.subSequence(buf.position(), buf.position()).order(), expected); in ckCharBuffer() local
DOrderLong.java37 private static void ckLongBuffer(LongBuffer buf, ByteOrder expected) { in ckLongBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckLongBuffer() local
39 ck(buf.duplicate().order(), expected); in ckLongBuffer() local
40 ck(buf.slice().order(), expected); in ckLongBuffer() local
DOrderFloat.java37 private static void ckFloatBuffer(FloatBuffer buf, ByteOrder expected) { in ckFloatBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckFloatBuffer() local
39 ck(buf.duplicate().order(), expected); in ckFloatBuffer() local
40 ck(buf.slice().order(), expected); in ckFloatBuffer() local
DOrderShort.java37 private static void ckShortBuffer(ShortBuffer buf, ByteOrder expected) { in ckShortBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckShortBuffer() local
39 ck(buf.duplicate().order(), expected); in ckShortBuffer() local
40 ck(buf.slice().order(), expected); in ckShortBuffer() local
DOrderInt.java37 private static void ckIntBuffer(IntBuffer buf, ByteOrder expected) { in ckIntBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckIntBuffer() local
39 ck(buf.duplicate().order(), expected); in ckIntBuffer() local
40 ck(buf.slice().order(), expected); in ckIntBuffer() local
DOrderDouble.java37 private static void ckDoubleBuffer(DoubleBuffer buf, ByteOrder expected) { in ckDoubleBuffer()
38 ck(buf.asReadOnlyBuffer().order(), expected); in ckDoubleBuffer() local
39 ck(buf.duplicate().order(), expected); in ckDoubleBuffer() local
40 ck(buf.slice().order(), expected); in ckDoubleBuffer() local
/libcore/ojluni/src/test/java/time/tck/java/time/format/
DTCKInstantPrinterParser.java117 public void test_print_grouped(long instantSecs, int nano, String expected) { in test_print_grouped()
120 assertEquals(f.format(instant), expected); in test_print_grouped() local
195 … public void test_print_digits(int fractionalDigits, long instantSecs, int nano, String expected) { in test_print_digits()
198 assertEquals(f.format(instant), expected); in test_print_digits() local
241 Instant expected = Instant.ofEpochSecond(instantSecs, nano); in test_parse_digitsMinusOne() local
243 assertEquals(f.parse(input, Instant::from), expected); in test_parse_digitsMinusOne() local
270 Instant expected = Instant.ofEpochSecond(instantSecs, nano); in test_parse_digitsNine() local
271 assertEquals(f.parse(input, Instant::from), expected); in test_parse_digitsNine() local
292 Instant expected = OffsetDateTime.of(1970, 2, 4, 0, 0, 0, 0, ZoneOffset.UTC).toInstant(); in test_parse_endOfDay() local
296 assertEquals(parsed.query(Instant::from), expected); in test_parse_endOfDay() local
[all …]
DTCKZoneIdPrinterParser.java115 public void test_print(LocalDateTime ldt, ZoneId zone, String expected) { in test_print()
123 public void test_print_pattern_VV(LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_VV()
213 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_plain()
221 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_prefix()
233 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_suffix()
241 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneId_parseSuccess_caseSensitive()
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()
261 … test(text.toLowerCase(Locale.ENGLISH), expectedIndex, expectedErrorIndex, expected, isZoneOffset); in test_ZoneId_parseSuccess_caseInsensitive() local
266 … String text, int expectedIndex, int expectedErrorIndex, ZoneId expected, boolean isZoneOffset) in test_ZoneOrOffsetId_parseSuccess_plain()
[all …]
DTCKChronoPrinterParser.java121 public void test_parseValid_caseSensitive(String text, Chronology expected) { in test_parseValid_caseSensitive()
126 assertEquals(parsed.query(TemporalQueries.chronology()), expected); in test_parseValid_caseSensitive() local
130 public void test_parseValid_caseSensitive_lowercaseRejected(String text, Chronology expected) { in test_parseValid_caseSensitive_lowercaseRejected()
139 public void test_parseValid_caseInsensitive(String text, Chronology expected) { in test_parseValid_caseInsensitive()
144 assertEquals(parsed.query(TemporalQueries.chronology()), expected); in test_parseValid_caseInsensitive() local
DTCKOffsetPrinterParser.java473 …est_print(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, String expected) { in test_print()
482 …pattern_X(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_X()
504 …pattern_x(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_x()
532 …pattern_Z(String offsetPattern, String noOffset, LocalDateTime ldt, ZoneId zone, String expected) { in test_print_pattern_Z()
556 …void test_print_localized(TextStyle style, LocalDateTime ldt, ZoneOffset offset, String expected) { in test_print_localized()
562 assertEquals(f.format(odt), expected); in test_print_localized() local
563 assertEquals(f.format(zdt), expected); in test_print_localized() local
569 assertEquals(f.format(odt), expected); in test_print_localized() local
570 assertEquals(f.format(zdt), expected); in test_print_localized() local
575 assertEquals(f.format(odt), expected); in test_print_localized() local
[all …]
/libcore/luni/src/test/java/libcore/java/lang/
DMathTest.java47 long expected = (long) a + (long) b; in testAddExactI() local
58 long expected = (long) a - (long) b; in testSubtractExactI() local
70 long expected = (long) a * (long) b; in testMultiplyExactI() local
81 long expected = (long) a + 1L; in testIncrementExactI() local
92 long expected = (long) a - 1L; in testDecrementExactI() local
103 long expected = -((long) a); in testNegateExactI() local
136 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.valueOf(b)); in testAddExactL() local
147 BigInteger expected = BigInteger.valueOf(a).subtract(BigInteger.valueOf(b)); in testSubtractExactL() local
158 BigInteger expected = BigInteger.valueOf(a).multiply(BigInteger.valueOf(b)); in testMultiplyExactL() local
169 BigInteger expected = BigInteger.valueOf(a).add(BigInteger.ONE); in testIncrementExactL() local
[all …]
/libcore/dom/src/test/java/org/w3c/domts/
DDOMTestInnerClass.java53 public void assertSame(String assertID, Object expected, Object actual) { in assertSame()
75 public void assertEqualsIgnoreCase(String assertID, String expected, in assertEqualsIgnoreCase()
80 public void assertEqualsIgnoreCase(String assertID, Collection expected, in assertEqualsIgnoreCase()
85 public void assertEqualsIgnoreCase(String assertID, List expected, in assertEqualsIgnoreCase()
90 public void assertEquals(String assertID, String expected, String actual) { in assertEquals()
94 public void assertEquals(String assertID, int expected, int actual) { in assertEquals()
98 public void assertEquals(String assertID, double expected, double actual) { in assertEquals()
102 public void assertEquals(String assertID, boolean expected, boolean actual) { in assertEquals()
106 public void assertEquals(String assertID, Collection expected, in assertEquals()
111 public void assertEquals(String assertID, Collection expected, in assertEquals()
[all …]
DDOMTestCase.java213 public void assertSame(String assertID, Object expected, Object actual) { in assertSame()
294 String expected, in assertEqualsIgnoreCase()
312 Collection expected, in assertEqualsIgnoreCase()
330 List expected, in assertEqualsIgnoreCase()
348 String expected, in assertEqualsAutoCase()
377 private List toUpperCase(Collection expected) { in toUpperCase()
400 Collection expected, in assertEqualAutoCase()
431 List expected, in assertEqualsAutoCase()
458 public void assertEquals(String assertID, String expected, String actual) { in assertEquals()
472 public void assertEquals(String assertID, int expected, int actual) { in assertEquals()
[all …]
DDOMTestFramework.java47 Object expected, in assertSame()
77 String expected, in assertEqualsIgnoreCase()
83 Collection expected, in assertEqualsIgnoreCase()
89 List expected, in assertEqualsIgnoreCase()
95 String expected, in assertEquals()
101 int expected, in assertEquals()
107 boolean expected, in assertEquals()
113 double expected, in assertEquals()
119 Collection expected, in assertEquals()
125 String expected, in assertNotEqualsIgnoreCase()
[all …]
/libcore/ojluni/src/test/java/lang/Math/
DWorstCaseTests.java103 private static void testExpCase(double input, double expected) { in testExpCase()
131 private static void testLogCase(double input, double expected) { in testLogCase()
160 private static void testSinCase(double input, double expected) { in testSinCase()
188 private static void testAsinCase(double input, double expected) { in testAsinCase()
217 private static void testCosCase(double input, double expected) { in testCosCase()
237 private static void testAcosCase(double input, double expected) { in testAcosCase()
262 private static void testTanCase(double input, double expected) { in testTanCase()
290 private static void testAtanCase(double input, double expected) { in testAtanCase()
312 private static void testPow2Case(double input, double expected) { in testPow2Case()
341 private static void testSinhCase(double input, double expected) { in testSinhCase()
[all …]
DTests.java238 boolean result, boolean expected) { in test()
246 boolean result, boolean expected) { in test()
254 boolean result, boolean expected) { in test()
263 boolean result, boolean expected) { in test()
272 int result, int expected) { in test()
280 int result, int expected) { in test()
288 float result, float expected) { in test()
297 double result, double expected) { in test()
306 float result, float expected) { in test()
316 double result, double expected) { in test()
[all …]
/libcore/luni/src/test/java/libcore/libcore/reflect/
DParameterizedTypeRegressionTest.java59 Class<List> expected = List.class; in testNoGeneric() local
69 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testGeneric() local
83 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testGenericOfGeneric() local
103 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testNested1() local
119 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testNested2() local
139 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testNested3() local
163 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testNested4_nonGenericLeaf() local
189 ParameterizedTypeImpl expected = new ParameterizedTypeImpl( in testNested4_nonGenericNonLeaf() local

12345678910>>...16