Searched refs:UNEXPECTED (Results 1 – 3 of 3) sorted by relevance
/libcore/ojluni/src/test/java/util/Optional/ |
D | BasicInt.java | 50 static final int UNEXPECTED = 0xCAFEBABE; field in BasicInt 58 assertFalse(empty.equals(OptionalInt.of(UNEXPECTED))); in checkEmpty() 59 assertFalse(OptionalInt.of(UNEXPECTED).equals(empty)); in checkEmpty() 67 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() local 68 assertEquals(empty.orElseGet(() -> UNEXPECTED), UNEXPECTED); in checkEmpty() local 100 assertFalse(opt.equals(OptionalInt.of(UNEXPECTED))); in checkPresent() 101 assertFalse(OptionalInt.of(UNEXPECTED).equals(opt)); in checkPresent() 109 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent() 110 assertEquals(opt.orElseGet(() -> UNEXPECTED), expected); in checkPresent()
|
D | BasicDouble.java | 49 static final double UNEXPECTED = 6.62607004E-34; field in BasicDouble 57 assertFalse(empty.equals(OptionalDouble.of(UNEXPECTED))); in checkEmpty() 58 assertFalse(OptionalDouble.of(UNEXPECTED).equals(empty)); in checkEmpty() 66 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() local 67 assertEquals(empty.orElseGet(() -> UNEXPECTED), UNEXPECTED); in checkEmpty() local 99 assertFalse(opt.equals(OptionalDouble.of(UNEXPECTED))); in checkPresent() 100 assertFalse(OptionalDouble.of(UNEXPECTED).equals(opt)); in checkPresent() 108 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent() 109 assertEquals(opt.orElseGet(() -> UNEXPECTED), expected); in checkPresent()
|
D | BasicLong.java | 49 static final long UNEXPECTED = 0xFEEDBEEFCAFEBABEL; field in BasicLong 57 assertFalse(empty.equals(OptionalLong.of(UNEXPECTED))); in checkEmpty() 58 assertFalse(OptionalLong.of(UNEXPECTED).equals(empty)); in checkEmpty() 66 assertEquals(empty.orElse(UNEXPECTED), UNEXPECTED); in checkEmpty() local 67 assertEquals(empty.orElseGet(() -> UNEXPECTED), UNEXPECTED); in checkEmpty() local 99 assertFalse(opt.equals(OptionalLong.of(UNEXPECTED))); in checkPresent() 100 assertFalse(OptionalLong.of(UNEXPECTED).equals(opt)); in checkPresent() 108 assertEquals(opt.orElse(UNEXPECTED), expected); in checkPresent() 109 assertEquals(opt.orElseGet(() -> UNEXPECTED), expected); in checkPresent()
|