use malachite_base::test_util::hash::hash;
use malachite_float::test_util::generators::{float_gen, float_gen_var_12};
use malachite_float::{ComparableFloatRef, Float};
#[allow(clippy::needless_pass_by_value)]
fn hash_properties_helper(x: Float) {
assert_eq!(
hash(&ComparableFloatRef(&x)),
hash(&ComparableFloatRef(&x.clone()))
);
}
#[test]
fn hash_properties() {
float_gen().test_properties(|x| {
hash_properties_helper(x);
});
float_gen_var_12().test_properties(|x| {
hash_properties_helper(x);
});
}