diff options
| author | Nicolas Petton | 2015-02-09 13:14:52 +0100 |
|---|---|---|
| committer | Nicolas Petton | 2015-02-11 14:45:51 +0100 |
| commit | c49e769d8f141b0307db19ed2a5fa80e0696b1dc (patch) | |
| tree | aa4505ccc15006aefe0649c4017e7f133ac57164 /test | |
| parent | 061c7e2b5a5a5854b2b85f2ace5b1d9222dd7f11 (diff) | |
| download | emacs-c49e769d8f141b0307db19ed2a5fa80e0696b1dc.tar.gz emacs-c49e769d8f141b0307db19ed2a5fa80e0696b1dc.zip | |
Improve seq-group-by to return sequence elements in correct order
* lisp/emacs-lisp/seq.el (seq-group-by): Improves seq-group-by to
return sequence elements in correct order
* tests/automated/seq-tests.el: Update test for seq-group-by
* doc/lispref/sequences.texi (Sequence Functions): Update documentation
examples for seq-group-by
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 6 | ||||
| -rw-r--r-- | test/automated/seq-tests.el | 6 |
2 files changed, 9 insertions, 3 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 74fc7cebd56..b080961f681 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -3,6 +3,12 @@ | |||
| 3 | * automated/package-test.el (package-test-signed): | 3 | * automated/package-test.el (package-test-signed): |
| 4 | More informative failure messages. | 4 | More informative failure messages. |
| 5 | 5 | ||
| 6 | 2015-02-09 Nicolas Petton <nicolas@petton.fr> | ||
| 7 | |||
| 8 | * automated/seq-tests.el (test-seq-group-by): Update test for | ||
| 9 | seq-group-by to check that sequence elements are returned in the | ||
| 10 | correct order. | ||
| 11 | |||
| 6 | 2015-02-07 Fabián Ezequiel Gallina <fgallina@gnu.org> | 12 | 2015-02-07 Fabián Ezequiel Gallina <fgallina@gnu.org> |
| 7 | 13 | ||
| 8 | * automated/python-tests.el (python-eldoc--get-symbol-at-point-1) | 14 | * automated/python-tests.el (python-eldoc--get-symbol-at-point-1) |
diff --git a/test/automated/seq-tests.el b/test/automated/seq-tests.el index ecbc0043210..b92a15cacc5 100644 --- a/test/automated/seq-tests.el +++ b/test/automated/seq-tests.el | |||
| @@ -216,10 +216,10 @@ Evaluate BODY for each created sequence. | |||
| 216 | (should (equal (seq-partition '(1 2 3) -1) '()))) | 216 | (should (equal (seq-partition '(1 2 3) -1) '()))) |
| 217 | 217 | ||
| 218 | (ert-deftest test-seq-group-by () | 218 | (ert-deftest test-seq-group-by () |
| 219 | (should (equal (seq-group-by #'test-sequences-oddp [1 2 3 4]) | 219 | (should (equal (seq-group-by #'test-sequences-oddp '(1 2 3 4)) |
| 220 | '((t 3 1) (nil 4 2)))) | 220 | '((t 1 3) (nil 2 4)))) |
| 221 | (should (equal (seq-group-by #'car '((a 1) (b 3) (c 4) (a 2))) | 221 | (should (equal (seq-group-by #'car '((a 1) (b 3) (c 4) (a 2))) |
| 222 | '((a (a 2) (a 1)) (b (b 3)) (c (c 4)))))) | 222 | '((b (b 3)) (c (c 4)) (a (a 1) (a 2)))))) |
| 223 | 223 | ||
| 224 | (provide 'seq-tests) | 224 | (provide 'seq-tests) |
| 225 | ;;; seq-tests.el ends here | 225 | ;;; seq-tests.el ends here |