* fix issue #33 Negating most-negative-fixnum doesn't. * Add unit test for issue #33 Negating most-negative-fixnum doesn't.
This commit is contained in:
@@ -65,6 +65,9 @@
|
||||
(assert (> (- #int32(0x80000000)) 0))
|
||||
(assert (< (- #uint64(0x8000000000000000)) 0))
|
||||
(assert (> (- #int64(0x8000000000000000)) 0))
|
||||
; fixnum versions
|
||||
(assert (= (- -536870912) 536870912))
|
||||
(assert (= (- -2305843009213693952) 2305843009213693952))
|
||||
|
||||
(assert (not (equal? #int64(0x8000000000000000) #uint64(0x8000000000000000))))
|
||||
(assert (equal? (+ #int64(0x4000000000000000) #int64(0x4000000000000000))
|
||||
|
||||
Reference in New Issue
Block a user