mirror of
https://github.com/janet-lang/janet
synced 2025-10-16 08:17:41 +00:00
Immediate instuctions will now call :compare method.
This commit is contained in:
@@ -137,4 +137,10 @@
|
||||
(assert (deep= (string/split "qq" "1qqqqz") @["1" "" "z"]) "string/split 1")
|
||||
(assert (deep= (string/split "aa" "aaa") @["" "a"]) "string/split 2")
|
||||
|
||||
# Comparisons
|
||||
(assert (> 1e23 100) "less than immediate 1")
|
||||
(assert (> 1e23 1000) "less than immediate 2")
|
||||
(assert (< 100 1e23) "greater than immediate 1")
|
||||
(assert (< 1000 1e23) "greater than immediate 2")
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user