diff options
| author | Stefan Monnier | 2013-09-12 16:15:53 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-09-12 16:15:53 -0400 |
| commit | ae5e4c483a4700fed927f546eebf06d1b1e92057 (patch) | |
| tree | 4856711ffc0c5424f197db8f790423fc55e410be /test | |
| parent | da0752f93768a43bb411955cb27c5438462ec210 (diff) | |
| download | emacs-ae5e4c483a4700fed927f546eebf06d1b1e92057.tar.gz emacs-ae5e4c483a4700fed927f546eebf06d1b1e92057.zip | |
* lisp/eshell/*.el: Use lexical-binding.
* test/automated/eshell.el: Move from test/eshell.el.
(eshell-test/for-loop, eshell-test/for-name-loop): New tests.
Fixes: debbugs:15231
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 25 | ||||
| -rw-r--r-- | test/automated/eshell.el (renamed from test/eshell.el) | 8 |
2 files changed, 23 insertions, 10 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 7b39097d3b5..3e42e18b2b4 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-12 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * automated/eshell.el: Rename from eshell.el. | ||
| 4 | (eshell-test/for-loop, eshell-test/for-name-loop): New tests (bug#15231). | ||
| 5 | |||
| 1 | 2013-09-01 Glenn Morris <rgm@gnu.org> | 6 | 2013-09-01 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * automated/Makefile.in (setwins): Avoid leading space in $wins. | 8 | * automated/Makefile.in (setwins): Avoid leading space in $wins. |
| @@ -164,25 +169,25 @@ | |||
| 164 | 2013-07-05 Michael Albinus <michael.albinus@gmx.de> | 169 | 2013-07-05 Michael Albinus <michael.albinus@gmx.de> |
| 165 | 170 | ||
| 166 | * automated/file-notify-tests.el | 171 | * automated/file-notify-tests.el |
| 167 | (file-notify-test-remote-temporary-file-directory): Use | 172 | (file-notify-test-remote-temporary-file-directory): |
| 168 | `null-device' on w32. | 173 | Use `null-device' on w32. |
| 169 | (file-notify--test-tmpfile, file-notify--test-tmpfile1) | 174 | (file-notify--test-tmpfile, file-notify--test-tmpfile1) |
| 170 | (file-notify--test-results, file-notify--test-event) | 175 | (file-notify--test-results, file-notify--test-event) |
| 171 | (file-notify--deftest-remote, file-notify--event-test) | 176 | (file-notify--deftest-remote, file-notify--event-test) |
| 172 | (file-notify--test-event-handler) | 177 | (file-notify--test-event-handler) |
| 173 | (file-notify--test-make-temp-name): Renamed, in order to mark them | 178 | (file-notify--test-make-temp-name): Rename, in order to mark them |
| 174 | internal. | 179 | internal. |
| 175 | (tramp-message-show-message, tramp-read-passwd): Tweak them for | 180 | (tramp-message-show-message, tramp-read-passwd): Tweak them for |
| 176 | better fitting in noninteractive tests. | 181 | better fitting in noninteractive tests. |
| 177 | (file-notify-test00-availability): Renamed from `file-notify-test0'. | 182 | (file-notify-test00-availability): Rename from `file-notify-test0'. |
| 178 | (file-notify-test01-add-watch): Renamed from `file-notify-test1'. | 183 | (file-notify-test01-add-watch): Rename from `file-notify-test1'. |
| 179 | Use `temporary-file-directory '. | 184 | Use `temporary-file-directory '. |
| 180 | (file-notify-test01-add-watch-remote): New test. | 185 | (file-notify-test01-add-watch-remote): New test. |
| 181 | (file-notify-test02-events): Renamed from `file-notify-test2'. | 186 | (file-notify-test02-events): Rename from `file-notify-test2'. |
| 182 | (file-notify-test02-events-remote): Renamed from `file-notify-test3'. | 187 | (file-notify-test02-events-remote): Rename from `file-notify-test3'. |
| 183 | (file-notify-test03-autorevert): Renamed from | 188 | (file-notify-test03-autorevert): Rename from |
| 184 | `file-notify-test4'. Use timeouts. | 189 | `file-notify-test4'. Use timeouts. |
| 185 | (file-notify-test03-autorevert-remote): Renamed from | 190 | (file-notify-test03-autorevert-remote): Rename from |
| 186 | `file-notify-test5'. | 191 | `file-notify-test5'. |
| 187 | 192 | ||
| 188 | 2013-07-04 Michael Albinus <michael.albinus@gmx.de> | 193 | 2013-07-04 Michael Albinus <michael.albinus@gmx.de> |
| @@ -192,7 +197,7 @@ | |||
| 192 | 2013-06-28 Kenichi Handa <handa@gnu.org> | 197 | 2013-06-28 Kenichi Handa <handa@gnu.org> |
| 193 | 198 | ||
| 194 | * automated/decoder-tests.el (decoder-tests-gen-file): New arg FILE. | 199 | * automated/decoder-tests.el (decoder-tests-gen-file): New arg FILE. |
| 195 | (decoder-tests-ao-gen-file): Renamed from decoder-tests-filename. | 200 | (decoder-tests-ao-gen-file): Rename from decoder-tests-filename. |
| 196 | Callers changed. | 201 | Callers changed. |
| 197 | (decoder-tests-filename): New function. | 202 | (decoder-tests-filename): New function. |
| 198 | (decoder-tests-prefer-utf-8-read) | 203 | (decoder-tests-prefer-utf-8-read) |
diff --git a/test/eshell.el b/test/automated/eshell.el index 126a47220c4..a7df2945424 100644 --- a/test/eshell.el +++ b/test/automated/eshell.el | |||
| @@ -62,6 +62,14 @@ | |||
| 62 | "Test `eshell-command-result' with an elisp command." | 62 | "Test `eshell-command-result' with an elisp command." |
| 63 | (should (equal (eshell-command-result "(+ 1 2)") 3))) | 63 | (should (equal (eshell-command-result "(+ 1 2)") 3))) |
| 64 | 64 | ||
| 65 | (ert-deftest eshell-test/for-loop () | ||
| 66 | "Test `eshell-command-result' with an elisp command." | ||
| 67 | (should (equal (eshell-command-result "for foo in 5 { echo $foo }") 5))) | ||
| 68 | |||
| 69 | (ert-deftest eshell-test/for-name-loop () ;Bug#15231 | ||
| 70 | "Test `eshell-command-result' with an elisp command." | ||
| 71 | (should (equal (eshell-command-result "for name in 3 { echo $name }") 3))) | ||
| 72 | |||
| 65 | (ert-deftest eshell-test/lisp-command-args () | 73 | (ert-deftest eshell-test/lisp-command-args () |
| 66 | "Test `eshell-command-result' with elisp and trailing args. | 74 | "Test `eshell-command-result' with elisp and trailing args. |
| 67 | Test that trailing arguments outside the S-expression are | 75 | Test that trailing arguments outside the S-expression are |