summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNicolas Petton <nicolas@petton.fr>2015-06-30 18:29:32 +0200
committerNicolas Petton <nicolas@petton.fr>2015-06-30 18:40:19 +0200
commitb1047c3b422f5280a9de6c56b1ba77e5dbc185ee (patch)
tree50386cf0758e757f6488a83e94af4f5fb0f84ad5 /test
parent3bea77f65504ee7c4364c300fd1f7d699e2866ac (diff)
downloademacs-b1047c3b422f5280a9de6c56b1ba77e5dbc185ee.tar.gz
Add seq-min and seq-max
Bump version number. * lisp/emacs-lisp/seq.el (seq-min, seq-max): New functions. * test/automated/seq-tests.el: Add tests for seq-min and seq-max.
Diffstat (limited to 'test')
-rw-r--r--test/automated/seq-tests.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/automated/seq-tests.el b/test/automated/seq-tests.el
index ab46eb85f76..3643ce53cb0 100644
--- a/test/automated/seq-tests.el
+++ b/test/automated/seq-tests.el
@@ -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