]> code.delx.au - gnu-emacs-elpa/blobdiff - packages/seq/tests/seq-tests.el
Update seq.el to version 1.8
[gnu-emacs-elpa] / packages / seq / tests / seq-tests.el
index ab46eb85f7609bac22f5a3cffdcc9224b22cf728..3643ce53cb0ca39e2e933045160ae4f47e421629 100644 (file)
@@ -297,5 +297,10 @@ Evaluate BODY for each created sequence.
       (should (null b))
       (should (null c)))))
 
+(ert-deftest test-seq-min-max ()
+  (with-test-sequences (seq '(4 5 3 2 0 4))
+    (should (= (seq-min seq) 0))
+    (should (= (seq-max seq) 5))))
+
 (provide 'seq-tests)
 ;;; seq-tests.el ends here