Issue #510 - Added test cases

This commit is contained in:
Justin Ethier 2023-09-05 17:41:36 -07:00
parent 0533d3eab0
commit 46e7e193df

View file

@ -50,6 +50,24 @@
(test 2.0 (denominator (/ 6 4)))
)
(test-group
"truncate"
(test -1 (truncate -1))
(test -1.0 (truncate -1.0))
(test -1.0 (truncate -1.1))
(test -1.0 (truncate -1.1))
(test +inf.0 (truncate +inf.0))
)
(test-group
"exact"
(test -1 (exact -1))
(test -1 (exact -1.0))
(test -1 (exact -1.1))
(test -1 (exact -1.1))
;(test +inf.0 (exact +inf.0))
)
(test-group
"records"
(define-record-type employee