void (int size) { Random random = new Random(42); long[] data = new long[size]; for (int i = 0; i < size; i++) { data[i] = random.nextLong(); } long expected = switch (size) { case 1 -> 6383185674071107836L; case 2 -> -8849141235685524932L; case 3 -> -7554874527885947435L; case 10 -> 8740875949817914742L; case 20 -> -8306236459388834883L; case 2048 -> -4387089420526726675L; case 10_000 -> -4959357597963000776L; default -> throw new UnsupportedOperationException("Unknown size"); }; assertThat(Xxh3.hashLongs(data)).isEqualTo(expected); }