History

fix broken >= and <=

Sigrid Solveig Haflínudóttir committed 1 year ago

Commit 8e5d5781 parent 9db91975 files · +28 −12Browse files

Showing the changes to test (1 of 5 files). Show all

Unified · Split

test/unittest.lsp+6−0
@@ -148,6 +148,12 @@ · 147 unmodified lines
148148 (assert (>= "ab" "aa"))
149149 (assert (>= "ab" "aa" "aa"))
150150
151+; one or more than two arguments
152+(assert (and (> 0) (< 0) (>= 0) (<= 0)))
153+(assert (and (> 2 1 0) (< 0 1 2) (>= 2 1 0) (<= 0 1 2)))
154+(assert (and (>= 2 1 1) (<= 1 1 2)))
155+(assert (not (and (>= 2 1 2) (<= 2 1 2))))
156+
151157 ; comparing numbers and runes
152158 (assert (< 9 #\newline))
153159 (assert (not (< 10 #\newline)))

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t