ref: 4f5436b163da902ca24743b9836309c8cc724b3f
parent: 8574b45cc43b0880306ea853d4345d5f27dde385
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Thu Oct 31 02:13:55 EDT 2024
add unit tests for two previous issues
--- a/test/unittest.lsp
+++ b/test/unittest.lsp
@@ -82,6 +82,8 @@
(assert (> 9223372036854775808 9223372036854775807))
+(assert (fixnum? (- (aref "0" 0) #\0)))
+
; number boundaries
(load "number-boundaries.lsp")
@@ -136,6 +138,12 @@
(assert (<= "a" "a"))
(assert (>= "a" "a"))
(assert (>= "ab" "aa"))
+
+; comparing numbers and runes
+(assert (< 9 #\newline))
+(assert (not (< 10 #\newline)))
+(assert (= 10 #\newline))
+(assert (> 11 #\newline))
; -0.0 etc.
(assert (not (equal? 0.0 0)))