<commit_before>! Copyright (C) 2013 <NAME>
! See http://factorcode.org/license.txt for BSD license

USING: arrays kernel math sequences tools.test ;

IN: math.hashcodes

{ t } [
    12 dup >bignum 12.0 12 0 complex boa 4array
    [ number-hashcode 12 = ] all?
] unit-test

{ t } [
    1.5 3/2 1.5 0 complex boa 3/2 0 complex boa 4array
    [ number-hashcode 3458764513820540928 = ] all?
] unit-test
<commit_msg>math.hashcodes: try and fix tests on 32-bit.<commit_after>! Copyright (C) 2013 <NAME>
! See http://factorcode.org/license.txt for BSD license

USING: arrays kernel math sequences tools.test ;

IN: math.hashcodes

{ t } [
    12 dup >bignum 12.0 12 0 complex boa 4array
    [ number-hashcode 12 = ] all?
] unit-test

{ t } [
    1.5 3/2 1.5 0 complex boa 3/2 0 complex boa 4array
    [
        number-hashcode
        cell-bits 64 = 3458764513820540928 3221225472 ?
        =
    ] all?
] unit-test

{'fraction_non_alphanumeric': 0.10891089108910891, 'fraction_numerical': 0.11441144114411442, 'mean_word_length': 2.7295081967213113, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '5552960', 'n_tokens_mistral': 404, 'n_tokens_neox': 328, 'n_words': 105}