Home
last modified time | relevance | path

Searched refs:assertEquivalent (Results 1 – 9 of 9) sorted by relevance

/external/okio/okio/src/jvmTest/kotlin/okio/
DSegmentSharingTest.kt19 import okio.TestUtil.assertEquivalent
31 assertEquivalent(snapshot, ByteString.EMPTY) in snapshotOfEmptyBuffer()
36 assertEquivalent(byteString, bufferWithSegments(xs, ys + zs).snapshot()) in snapshotsAreEquivalent()
37 assertEquivalent(byteString, bufferWithSegments(xs + ys + zs).snapshot()) in snapshotsAreEquivalent()
38 assertEquivalent(byteString, (xs + ys + zs).encodeUtf8()) in snapshotsAreEquivalent()
103 assertEquivalent(byteString, TestUtil.reserialize(byteString)) in snapshotJavaSerialization()
109 assertEquivalent(bufferA, bufferB) in clonesAreEquivalent()
110 assertEquivalent(bufferA, bufferWithSegments(xs + ys, zs)) in clonesAreEquivalent()
151 assertEquivalent(bufferB, bufferA) in appendSnapshotToEmptyBuffer()
159 assertEquivalent(bufferB, Buffer().writeUtf8(us + xs + ys)) in appendSnapshotToNonEmptyBuffer()
[all …]
DTestUtil.kt104 fun assertEquivalent(b1: ByteString, b2: ByteString) { in assertEquivalent() method
141 fun assertEquivalent(b1: Buffer, b2: Buffer) { in assertEquivalent() method
/external/okhttp/okio/okio/src/test/java/okio/
DSegmentSharingTest.java20 import static okio.TestUtil.assertEquivalent;
35 assertEquivalent(snapshot, ByteString.EMPTY); in snapshotOfEmptyBuffer()
40 assertEquivalent(byteString, concatenateBuffers(xs, ys + zs).snapshot()); in snapshotsAreEquivalent()
41 assertEquivalent(byteString, concatenateBuffers(xs + ys + zs).snapshot()); in snapshotsAreEquivalent()
42 assertEquivalent(byteString, ByteString.encodeUtf8(xs + ys + zs)); in snapshotsAreEquivalent()
111 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in snapshotJavaSerialization()
117 assertEquivalent(bufferA, bufferB); in clonesAreEquivalent()
118 assertEquivalent(bufferA, concatenateBuffers(xs + ys, zs)); in clonesAreEquivalent()
159 assertEquivalent(bufferB, bufferA); in appendSnapshotToEmptyBuffer()
167 assertEquivalent(bufferB, new Buffer().writeUtf8(us + xs + ys)); in appendSnapshotToNonEmptyBuffer()
[all …]
DTestUtil.java53 public static void assertEquivalent(ByteString b1, ByteString b2) { in assertEquivalent() method in TestUtil
89 public static void assertEquivalent(Buffer b1, Buffer b2) { in assertEquivalent() method in TestUtil
DByteStringTest.java29 import static okio.TestUtil.assertEquivalent;
269 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestNonEmpty()
274 assertEquivalent(byteString, TestUtil.reserialize(byteString)); in javaSerializationTestEmpty()
/external/guava/guava-testlib/src/com/google/common/testing/
DCollectorTester.java157 assertEquivalent(expectedResult, (R) finalAccum); in doExpectCollects()
159 assertEquivalent(expectedResult, collector.finisher().apply(finalAccum)); in doExpectCollects()
163 private void assertEquivalent(@Nullable R expected, @Nullable R actual) { in assertEquivalent() method in CollectorTester
/external/icu/android_icu4j/testing/src/com/android/icu/test/util/
DExtendedTimeZoneParameterizedTest.java126 assertEquivalent(icuTrans, jtTrans); in testTransitionsNearInstants()
134 assertEquivalent(icuTrans, jtTrans); in testTransitionsNearInstants()
163 assertEquivalent(icuTrans, jtTrans); in testAllTransitions()
273 private static void assertEquivalent( in assertEquivalent() method in ExtendedTimeZoneParameterizedTest
/external/guava/guava-tests/test/com/google/common/math/
DStatsTest.java685 assertEquivalent(stats.mean(), stream(array).average().getAsDouble()); in testEquivalentStreams()
686 assertEquivalent(stats.sum(), stream(array).sum()); in testEquivalentStreams()
687 assertEquivalent(stats.max(), stream(array).max().getAsDouble()); in testEquivalentStreams()
688 assertEquivalent(stats.min(), stream(array).min().getAsDouble()); in testEquivalentStreams()
690 assertEquivalent(Stats.meanOf(array), stream(array).average().getAsDouble()); in testEquivalentStreams()
694 assertEquivalent(stats.mean(), streamStats.getAverage()); in testEquivalentStreams()
695 assertEquivalent(stats.sum(), streamStats.getSum()); in testEquivalentStreams()
696 assertEquivalent(stats.max(), streamStats.getMax()); in testEquivalentStreams()
697 assertEquivalent(stats.min(), streamStats.getMin()); in testEquivalentStreams()
701 private static void assertEquivalent(double actual, double expected) { in assertEquivalent() method in StatsTest
/external/okio/okio/src/jvmTest/java/okio/
DByteStringJavaTest.java36 import static okio.TestUtil.assertEquivalent;
568 assertEquivalent(byteString, TestUtil.<ByteString>reserialize(byteString)); in javaSerializationTestNonEmpty()
573 assertEquivalent(byteString, TestUtil.<ByteString>reserialize(byteString)); in javaSerializationTestEmpty()