aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorArtur Malabarba <bruce.connor.am@gmail.com>2014-12-18 18:49:38 -0200
committerArtur Malabarba <bruce.connor.am@gmail.com>2014-12-18 18:49:38 -0200
commitaf62c86d0c2032949644941eaf524ead4ffa0adf (patch)
tree56f17c7b1d03082f1341a6b657e7cf3b40467dbd /test
parent641beffbc3ce72b4e1b9b6bbb79880ba795fdf72 (diff)
Test sx-assoc-let not let-alist
Since let-alist is no longer defined here. It makes no sense to test its contents.
Diffstat (limited to 'test')
-rw-r--r--test/tests.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/test/tests.el b/test/tests.el
index 8969c37..66d8d88 100644
--- a/test/tests.el
+++ b/test/tests.el
@@ -123,20 +123,14 @@
(should
(equal '(progn (require 'let-alist)
(sx--ensure-site data)
- (let ((.test (cdr (assq 'test data))))
- .test))
- (macroexpand-all
- '(sx-assoc-let data
- .test))))
+ (let-alist data .test))
+ (macroexpand '(sx-assoc-let data .test))))
(should
(equal '(progn (require 'let-alist)
(sx--ensure-site data)
- (let ((.test-one (cdr (assq 'test-one data)))
- (.test-two (cdr (assq 'test-two data))))
- (cons .test-one .test-two)))
- (macroexpand-all
- '(sx-assoc-let data
- (cons .test-one .test-two))))))
+ (let-alist data (cons .test-one .test-two)))
+ (macroexpand
+ '(sx-assoc-let data (cons .test-one .test-two))))))
(ert-deftest sx--user-@name ()
"Tests macro expansion for `sx-assoc-let'"