X-Git-Url: http://repo.macrolet.net/gitweb/?a=blobdiff_plain;f=tests%2Fhash.impure.lisp;fp=tests%2Fhash.impure.lisp;h=ee9e538da51053ad251317b636572b06aca930b2;hb=b0a51fec91a2196e95824165dcdb049ff6e3834b;hp=fae5863b93e4583f2863367afa24f0d4fd72cdde;hpb=2f1071f50ae43bce938aacf03d67d9626014a076;p=sbcl.git diff --git a/tests/hash.impure.lisp b/tests/hash.impure.lisp index fae5863..ee9e538 100644 --- a/tests/hash.impure.lisp +++ b/tests/hash.impure.lisp @@ -194,8 +194,13 @@ (unless (typep (funcall #'sxhash i) '(and fixnum unsigned-byte)) (error "bad SXHASH behavior for ~S" i)) (dolist (j sxhash-tests) - (unless (eq (t->boolean (equal i j)) - (t->boolean (= (sxhash i) (sxhash j)))) + (unless (or (eq (t->boolean (equal i j)) + (t->boolean (= (sxhash i) (sxhash j)))) + (and (typep i 'number) + (typep j 'number) + (= i j) + (subtypep (type-of i) (type-of j)) + (subtypep (type-of j) (type-of i)))) ;; (If you get a surprising failure here, maybe you were ;; just very unlucky; see the notes above.) (error "bad SXHASH behavior for ~S ~S" i j))))