factor/extra/math/hashcodes/hashcodes-tests.factor

16 lines
392 B
Factor
Raw Permalink Normal View History

! Copyright (C) 2013 John Benediktsson
! See http://factorcode.org/license.txt for BSD license
2018-02-15 11:45:08 -05:00
USING: arrays kernel grouping math math.hashcodes sequences
tools.test ;
{ t } [
2013-03-16 16:58:29 -04:00
12 dup >bignum 12.0 12 0 complex boa 4array
2013-03-20 01:55:50 -04:00
[ number-hashcode ] map all-equal?
] unit-test
{ t } [
2013-03-16 16:58:29 -04:00
1.5 3/2 1.5 0 complex boa 3/2 0 complex boa 4array
2013-03-20 01:55:50 -04:00
[ number-hashcode ] map all-equal?
] unit-test