aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Colascione2014-03-22 23:00:18 -0700
committerDaniel Colascione2014-03-22 23:00:18 -0700
commit7eab98da1b67fb50195cfd0bfa20ddca75e67465 (patch)
tree339022ac422974e8851dc5255b1d78988380d87d /test
parent0ceba22e53c3ce48448f37311b8ec2294ef8238c (diff)
downloademacs-7eab98da1b67fb50195cfd0bfa20ddca75e67465.tar.gz
emacs-7eab98da1b67fb50195cfd0bfa20ddca75e67465.zip
Fix keyword argument parsing. Please bootstrap.
Diffstat (limited to 'test')
-rw-r--r--test/ChangeLog5
-rw-r--r--test/automated/cl-lib.el6
2 files changed, 11 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 9560397fa3f..15677e76468 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
12014-03-23 Daniel Colascione <dancol@dancol.org>
2
3 * automated/cl-lib.el (cl-lib-keyword-names-versus-values): New
4 test: correct parsing of keyword arguments.
5
12014-03-23 Dmitry Gutov <dgutov@yandex.ru> 62014-03-23 Dmitry Gutov <dgutov@yandex.ru>
2 7
3 * automated/package-test.el (package-test-describe-package): 8 * automated/package-test.el (package-test-describe-package):
diff --git a/test/automated/cl-lib.el b/test/automated/cl-lib.el
index 8b6ed6d6634..f7f4314e1cb 100644
--- a/test/automated/cl-lib.el
+++ b/test/automated/cl-lib.el
@@ -195,4 +195,10 @@
195 (should (eql (cl-mismatch "Aa" "aA") 0)) 195 (should (eql (cl-mismatch "Aa" "aA") 0))
196 (should (eql (cl-mismatch '(a b c) '(a b d)) 2))) 196 (should (eql (cl-mismatch '(a b c) '(a b d)) 2)))
197 197
198(ert-deftest cl-lib-keyword-names-versus-values ()
199 (should (equal
200 (funcall (cl-function (lambda (&key a b) (list a b)))
201 :b :a :a 42)
202 '(42 :a))))
203
198;;; cl-lib.el ends here 204;;; cl-lib.el ends here