okuoku / yuni

R7RS/R6RS/Generic Scheme portability platform
Other
32 stars 3 forks source link

Foment: eqv-hashtable cannot handle inexact number keys #136

Closed okuoku closed 4 years ago

okuoku commented 4 years ago
Test: 66/68 passed.

Failed:
    [(hashtable-ref ht a #f)]  Expected: b  Actual: a
    [(hashtable-ref ht 0.0 #f)]  Expected: b  Actual: #f
okuoku commented 4 years ago

For numbers-as-key hashtable, equal? seems to work as expected. WARed: https://github.com/okuoku/yuni/commit/e7aff13e604bac441a2baa949de9c0fc04fee30d#diff-1eb2daa37350c2166386a3c4c8611292R49

Filed: https://github.com/leftmike/foment/issues/35

okuoku commented 4 years ago

Upstream fixed issue. Restored: https://github.com/okuoku/yuni/commit/d2e8f2b1748602698e777b685f29e94c5f8dcb01