aboutsummaryrefslogtreecommitdiff
path: root/test/test-macros.el
diff options
context:
space:
mode:
authorSean Allred <code@seanallred.com>2015-01-01 14:09:02 -0500
committerSean Allred <code@seanallred.com>2015-01-01 14:09:02 -0500
commit6376a70f9d70f711723e144ea787cd0a79f7cd7b (patch)
tree469a2811e630d1bcddd371bab06153c9cfe1919c /test/test-macros.el
parenteed71f7024169c2d400ef5d0a84595d186c81bb0 (diff)
Docstrings for tests
Diffstat (limited to 'test/test-macros.el')
-rw-r--r--test/test-macros.el11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test-macros.el b/test/test-macros.el
index 8bdd527..2169088 100644
--- a/test/test-macros.el
+++ b/test/test-macros.el
@@ -1,11 +1,12 @@
(defmacro sx-test-with-json-data (cell &rest body)
- (declare (indent 1))
- `(let ((,cell '((test . nil) (test-one . 1) (test-two . 2)
- (link . "http://meta.emacs.stackexchange.com/"))))
- ,@body))
+ "Run BODY with sample data let-bound to CELL"
+ (declare (indent 1))
+ `(let ((,cell '((test . nil) (test-one . 1) (test-two . 2)
+ (link . "http://meta.emacs.stackexchange.com/"))))
+ ,@body))
(ert-deftest macro-test--sx-assoc-let ()
- "Tests macro expansion for `sx-assoc-let'"
+ "Test `sx-assoc-let'"
(sx-test-with-json-data data
(should
(null (let-alist data .site))))