Searched refs:assertHash (Results 1 – 2 of 2) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | Murmur3Hash32Test.java | 30 assertHash(593689054, murmur3_32().hashInt(0)); in testKnownIntegerInputs() 31 assertHash(-189366624, murmur3_32().hashInt(-42)); in testKnownIntegerInputs() 32 assertHash(-1134849565, murmur3_32().hashInt(42)); in testKnownIntegerInputs() 33 assertHash(-1718298732, murmur3_32().hashInt(Integer.MIN_VALUE)); in testKnownIntegerInputs() 34 assertHash(-1653689534, murmur3_32().hashInt(Integer.MAX_VALUE)); in testKnownIntegerInputs() 38 assertHash(1669671676, murmur3_32().hashLong(0L)); in testKnownLongInputs() 39 assertHash(-846261623, murmur3_32().hashLong(-42L)); in testKnownLongInputs() 40 assertHash(1871679806, murmur3_32().hashLong(42L)); in testKnownLongInputs() 41 assertHash(1366273829, murmur3_32().hashLong(Long.MIN_VALUE)); in testKnownLongInputs() 42 assertHash(-2106506049, murmur3_32().hashLong(Long.MAX_VALUE)); in testKnownLongInputs() [all …]
|
D | Murmur3Hash128Test.java | 34 assertHash(0, 0x629942693e10f867L, 0x92db0b82baeb5347L, "hell"); in testKnownValues() 35 assertHash(1, 0xa78ddff5adae8d10L, 0x128900ef20900135L, "hello"); in testKnownValues() 36 assertHash(2, 0x8a486b23f422e826L, 0xf962a2c58947765fL, "hello "); in testKnownValues() 37 assertHash(3, 0x2ea59f466f6bed8cL, 0xc610990acc428a17L, "hello w"); in testKnownValues() 38 assertHash(4, 0x79f6305a386c572cL, 0x46305aed3483b94eL, "hello wo"); in testKnownValues() 39 assertHash(5, 0xc2219d213ec1f1b5L, 0xa1d8e2e0a52785bdL, "hello wor"); in testKnownValues() 40 assertHash(0, 0xe34bbc7bbc071b6cL, 0x7a433ca9c49a9347L, in testKnownValues() 42 assertHash(0, 0x658ca970ff85269aL, 0x43fee3eaa68e5c3eL, in testKnownValues() 51 private static void assertHash(int seed, long expected1, long expected2, String stringInput) { in assertHash() method in Murmur3Hash128Test
|