diff options
author | Sean Allred <code@seanallred.com> | 2014-12-18 16:31:28 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2014-12-18 16:31:28 -0500 |
commit | efc284174d108d8c26a8b6e4fa3738cf697bd7e7 (patch) | |
tree | 9ff5d5929d7bfef20332eddc4b575bd0de913ee4 /test | |
parent | 977679d00ce0c725e8f7d0a07b84d33bfc20f6eb (diff) | |
parent | af62c86d0c2032949644941eaf524ead4ffa0adf (diff) |
Merge pull request #166 from vermiculus/assoc-let-test
Test sx-assoc-let not let-alist
Diffstat (limited to 'test')
-rw-r--r-- | test/tests.el | 16 |
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'" |