aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNicolas Petton2015-06-30 18:29:32 +0200
committerNicolas Petton2015-06-30 18:40:19 +0200
commitb1047c3b422f5280a9de6c56b1ba77e5dbc185ee (patch)
tree50386cf0758e757f6488a83e94af4f5fb0f84ad5 /test
parent3bea77f65504ee7c4364c300fd1f7d699e2866ac (diff)
downloademacs-b1047c3b422f5280a9de6c56b1ba77e5dbc185ee.tar.gz
emacs-b1047c3b422f5280a9de6c56b1ba77e5dbc185ee.zip
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.
297 (should (null b)) 297 (should (null b))
298 (should (null c))))) 298 (should (null c)))))
299 299
300(ert-deftest test-seq-min-max ()
301 (with-test-sequences (seq '(4 5 3 2 0 4))
302 (should (= (seq-min seq) 0))
303 (should (= (seq-max seq) 5))))
304
300(provide 'seq-tests) 305(provide 'seq-tests)
301;;; seq-tests.el ends here 306;;; seq-tests.el ends here