<commit_before># test builtin hash function with float args

# these should hash to an integer with a specific value
for val in (
    '0.0',
    '1.0',
    '2.0',
    '-12.0',
    '12345.0',
    ):
    print(val, hash(float(val)))

# just check that these values are hashable
for val in (
    '0.1',
    '-0.1',
    '10.3',
    'inf',
    '-inf',
    'nan',
    ):
    print(val, type(hash(float(val))))<commit_msg>tests/float/builtin_float_hash: Add test to improve objfloat.c coverage.<commit_after># test builtin hash function with float args

# these should hash to an integer with a specific value
for val in (
    '0.0',
    '1.0',
    '2.0',
    '-12.0',
    '12345.0',
    ):
    print(val, hash(float(val)))

# just check that these values are hashable
for val in (
    '0.1',
    '-0.1',
    '10.3',
    '1e16',
    'inf',
    '-inf',
    'nan',
    ):
    print(val, type(hash(float(val))))
{'fraction_non_alphanumeric': 0.16870144284128746, 'fraction_numerical': 0.05216426193118757, 'mean_word_length': 2.4166666666666665, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5505440', 'n_tokens_mistral': 347, 'n_tokens_neox': 334, 'n_words': 98}