Determinism: same input always produces same output within a process.
| 21 | |
| 22 | // Determinism: same input always produces same output within a process. |
| 23 | TEST(HashTest, Deterministic) { |
| 24 | const auto A = hashBytes("hello", 5); |
| 25 | const auto B = hashBytes("hello", 5); |
| 26 | EXPECT_EQ(A, B); |
| 27 | } |
| 28 | |
| 29 | // Different inputs should (almost certainly) produce different hashes. |
| 30 | TEST(HashTest, DifferentInputsDifferentHashes) { |