Lines Matching full:finish
82 let hash = hasher.finish(); in test_no_full_collisions()
105 assert_sufficiently_different(a.finish(), b.finish(), 1); in test_keys_change_output()
106 assert_sufficiently_different(a.finish(), c.finish(), 1); in test_keys_change_output()
107 assert_sufficiently_different(a.finish(), d.finish(), 1); in test_keys_change_output()
108 assert_sufficiently_different(b.finish(), c.finish(), 1); in test_keys_change_output()
109 assert_sufficiently_different(b.finish(), d.finish(), 1); in test_keys_change_output()
110 assert_sufficiently_different(c.finish(), d.finish(), 1); in test_keys_change_output()
157 let a = hasher.finish(); in test_finish_is_consistent()
158 let b = hasher.finish(); in test_finish_is_consistent()
170 assert_sufficiently_different(a.finish(), b.finish(), 2); in test_single_key_bit_flip()
171 assert_sufficiently_different(a.finish(), c.finish(), 2); in test_single_key_bit_flip()
172 assert_sufficiently_different(b.finish(), c.finish(), 2); in test_single_key_bit_flip()
179 assert_sufficiently_different(a.finish(), b.finish(), 2); in test_single_key_bit_flip()
180 assert_sufficiently_different(a.finish(), c.finish(), 2); in test_single_key_bit_flip()
181 assert_sufficiently_different(b.finish(), c.finish(), 2); in test_single_key_bit_flip()
188 assert_sufficiently_different(a.finish(), b.finish(), 2); in test_single_key_bit_flip()
189 assert_sufficiently_different(a.finish(), c.finish(), 2); in test_single_key_bit_flip()
190 assert_sufficiently_different(b.finish(), c.finish(), 2); in test_single_key_bit_flip()
261 let value = short.finish(); in test_padding_doesnot_collide()
267 let (same_bytes, same_nibbles) = count_same_bytes_and_nibbles(value, long.finish()); in test_padding_doesnot_collide()
270 format!("{} bytes of {} -> {:x} vs {:x}", num, c, value, long.finish()) in test_padding_doesnot_collide()
274 format!("{} bytes of {} -> {:x} vs {:x}", num, c, value, long.finish()) in test_padding_doesnot_collide()
276 let flipped_bits = (value ^ long.finish()).count_ones(); in test_padding_doesnot_collide()
286 … let (same_bytes, same_nibbles) = count_same_bytes_and_nibbles(value, long.finish()); in test_padding_doesnot_collide()
295 long.finish() in test_padding_doesnot_collide()
306 long.finish() in test_padding_doesnot_collide()
309 let flipped_bits = (value ^ long.finish()).count_ones(); in test_padding_doesnot_collide()
397 assert_sufficiently_different(hasher1.finish(), hasher2.finish(), 1); in test_single_bit_in_byte()