summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2023-01-05 23:36:34 +0100
committerLeah Neukirchen <leah@vuxu.org>2023-01-05 23:36:34 +0100
commit6577a1d3c3e250ea9cd204baac4633e5e68ceabb (patch)
treef3e7af11acb69c83e18f603892cb270253926d50 /tests
parent58f600a1bda649cf60568fd6c53784f035899d63 (diff)
downloadmew-6577a1d3c3e250ea9cd204baac4633e5e68ceabb.tar.gz
mew-6577a1d3c3e250ea9cd204baac4633e5e68ceabb.tar.xz
mew-6577a1d3c3e250ea9cd204baac4633e5e68ceabb.zip
add len>=
Diffstat (limited to 'tests')
-rw-r--r--tests/test.mew10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/test.mew b/tests/test.mew
index 13817b0..837edd8 100644
--- a/tests/test.mew
+++ b/tests/test.mew
@@ -394,6 +394,16 @@
   (test 3 (len (generator 5 6 7)))
   (test-error (len #t)))
 
+(test-group "len>="
+  (test #t (len>= '() 0))
+  (test #f (len>= '() 1))
+  (test #t (len>= '(1) 0))
+  (test #t (len>= '(1 2 3) 2))
+  (test #f (len>= '(1 2 3) 4))
+  (test #t (len>= (generator 5 6 7) 2))
+  (test #f (len>= (generator 5 6 7) 4))
+  (test-error (len>= #t 0)))
+
 (test-group "dup"
   (let* ((x (list (list "foo") "bar"))
          (y1 (dup x))