aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPaul Eggert2016-04-11 09:07:15 -0700
committerPaul Eggert2016-04-11 09:07:15 -0700
commitff2c76476479c43607825df01c78d8f239caefb5 (patch)
tree9eb72adddeab4fb7b0cebf49df81ab31f3bf8a13 /test
parentd6ea6453f3d1696b9e6cd0a0222fc77dc646365c (diff)
parent80128a784912096c6b0ee46b76b068e019cff057 (diff)
downloademacs-ff2c76476479c43607825df01c78d8f239caefb5.tar.gz
emacs-ff2c76476479c43607825df01c78d8f239caefb5.zip
Merge from origin/emacs-25
80128a7 Fix stability confusion in sort-tests 1e4aa42 Avoid describe-key error with lambdas a05fb21 * lisp/emacs-lisp/package.el (package-install-selected-packag... f501116 Sync with gnulib c4963f9 Fix doc for Universal Time
Diffstat (limited to 'test')
-rw-r--r--test/lisp/sort-tests.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lisp/sort-tests.el b/test/lisp/sort-tests.el
index 52973297818..f3a182cdc14 100644
--- a/test/lisp/sort-tests.el
+++ b/test/lisp/sort-tests.el
@@ -40,8 +40,10 @@
40 (funcall function reverse (point-min) (point-max)) 40 (funcall function reverse (point-min) (point-max))
41 (let ((sorted-words 41 (let ((sorted-words
42 (mapconcat #'identity 42 (mapconcat #'identity
43 (let ((x (sort (copy-sequence words) less-predicate))) 43 (sort (copy-sequence words)
44 (if reverse (reverse x) x)) 44 (if reverse
45 (lambda (a b) (funcall less-predicate b a))
46 less-predicate))
45 separator))) 47 separator)))
46 (should (string= (substring (buffer-string) 0 -1) sorted-words))))) 48 (should (string= (substring (buffer-string) 0 -1) sorted-words)))))
47 49