Commit cde40d2b authored by Glenn Morris's avatar Glenn Morris
Browse files

* test/automated/eshell.el (eshell-test/for-name-shadow-loop):

Test value before and after loop as well as during.
parent 70568a90
2013-09-16 Glenn Morris <rgm@gnu.org>
* automated/eshell.el (eshell-test/for-name-shadow-loop):
Test value before and after loop as well as during.
2013-09-15 Glenn Morris <rgm@gnu.org>
* automated/eshell.el (eshell-test/for-name-shadow-loop):
......
......@@ -89,8 +89,10 @@
(ert-deftest eshell-test/for-name-shadow-loop () ; bug#15372
"Test `eshell-command-result' with a for loop using an env-var."
(let ((process-environment (cons "name=env-value" process-environment)))
(should (equal (eshell-test-command-result "echo $name") "env-value"))
(should (equal (eshell-test-command-result
"for name in 3 { echo $name }") 3))))
"for name in 3 { echo $name }") 3))
(should (equal (eshell-test-command-result "echo $name") "env-value"))))
(ert-deftest eshell-test/lisp-command-args ()
"Test `eshell-command-result' with elisp and trailing args.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment