diff options
| author | Joakim Verona | 2013-09-16 08:27:23 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-09-16 08:27:23 +0200 |
| commit | df15e4f6391d475acf15dcb512a28eed9964caac (patch) | |
| tree | a1b8b76d585bb6168da097b4ce1b35be3fe8b1e6 /test | |
| parent | 2b483f0f59ff7f125dfbe490e42eb84c238ac971 (diff) | |
| parent | 578c21bc0316661f211dd73a9eb65c8213bd372f (diff) | |
| download | emacs-df15e4f6391d475acf15dcb512a28eed9964caac.tar.gz emacs-df15e4f6391d475acf15dcb512a28eed9964caac.zip | |
merge from trunk
Diffstat (limited to 'test')
| -rw-r--r-- | test/ChangeLog | 6 | ||||
| -rw-r--r-- | test/automated/eshell.el | 10 | ||||
| -rw-r--r-- | test/indent/ruby.rb | 4 |
3 files changed, 18 insertions, 2 deletions
diff --git a/test/ChangeLog b/test/ChangeLog index 21b22425fb6..85119db69f2 100644 --- a/test/ChangeLog +++ b/test/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2013-09-15 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * automated/eshell.el (eshell-test/for-name-shadow-loop): | ||
| 4 | New test. (Bug#15372) | ||
| 5 | (eshell-test/for-loop, eshell-test/for-name-loop): Doc fix. | ||
| 6 | |||
| 1 | 2013-09-13 Glenn Morris <rgm@gnu.org> | 7 | 2013-09-13 Glenn Morris <rgm@gnu.org> |
| 2 | 8 | ||
| 3 | * automated/eshell.el (with-temp-eshell): | 9 | * automated/eshell.el (with-temp-eshell): |
diff --git a/test/automated/eshell.el b/test/automated/eshell.el index b9eb31660f1..6f7a35371a6 100644 --- a/test/automated/eshell.el +++ b/test/automated/eshell.el | |||
| @@ -75,17 +75,23 @@ | |||
| 75 | (should (equal (eshell-test-command-result "(+ 1 2)") 3))) | 75 | (should (equal (eshell-test-command-result "(+ 1 2)") 3))) |
| 76 | 76 | ||
| 77 | (ert-deftest eshell-test/for-loop () | 77 | (ert-deftest eshell-test/for-loop () |
| 78 | "Test `eshell-command-result' with an elisp command." | 78 | "Test `eshell-command-result' with a for loop.." |
| 79 | (let ((process-environment (cons "foo" process-environment))) | 79 | (let ((process-environment (cons "foo" process-environment))) |
| 80 | (should (equal (eshell-test-command-result | 80 | (should (equal (eshell-test-command-result |
| 81 | "for foo in 5 { echo $foo }") 5)))) | 81 | "for foo in 5 { echo $foo }") 5)))) |
| 82 | 82 | ||
| 83 | (ert-deftest eshell-test/for-name-loop () ;Bug#15231 | 83 | (ert-deftest eshell-test/for-name-loop () ;Bug#15231 |
| 84 | "Test `eshell-command-result' with an elisp command." | 84 | "Test `eshell-command-result' with a for loop using `name'." |
| 85 | (let ((process-environment (cons "name" process-environment))) | 85 | (let ((process-environment (cons "name" process-environment))) |
| 86 | (should (equal (eshell-test-command-result | 86 | (should (equal (eshell-test-command-result |
| 87 | "for name in 3 { echo $name }") 3)))) | 87 | "for name in 3 { echo $name }") 3)))) |
| 88 | 88 | ||
| 89 | (ert-deftest eshell-test/for-name-shadow-loop () ; bug#15372 | ||
| 90 | "Test `eshell-command-result' with a for loop using an env-var." | ||
| 91 | (let ((process-environment (cons "name=env-value" process-environment))) | ||
| 92 | (should (equal (eshell-test-command-result | ||
| 93 | "for name in 3 { echo $name }") 3)))) | ||
| 94 | |||
| 89 | (ert-deftest eshell-test/lisp-command-args () | 95 | (ert-deftest eshell-test/lisp-command-args () |
| 90 | "Test `eshell-command-result' with elisp and trailing args. | 96 | "Test `eshell-command-result' with elisp and trailing args. |
| 91 | Test that trailing arguments outside the S-expression are | 97 | Test that trailing arguments outside the S-expression are |
diff --git a/test/indent/ruby.rb b/test/indent/ruby.rb index af1bbb9d8ab..6c9b9775b48 100644 --- a/test/indent/ruby.rb +++ b/test/indent/ruby.rb | |||
| @@ -71,3 +71,7 @@ end | |||
| 71 | if something == :== | 71 | if something == :== |
| 72 | do_something | 72 | do_something |
| 73 | end | 73 | end |
| 74 | |||
| 75 | # Bug#15369 | ||
| 76 | MSG = 'Separate every 3 digits in the integer portion of a number' \ | ||
| 77 | 'with underscores(_).' | ||