diff options
author | Sean Allred <code@seanallred.com> | 2015-01-01 14:14:05 -0500 |
---|---|---|
committer | Sean Allred <code@seanallred.com> | 2015-01-01 14:14:29 -0500 |
commit | 1518cee93ef2d33af9ddf214ae1c181d02c7b94f (patch) | |
tree | ba7383c9b7597c490dbed4da2b3d62350fbddff3 /test/test-printing.el | |
parent | 6376a70f9d70f711723e144ea787cd0a79f7cd7b (diff) |
Add toggle for detailed test messages
Diffstat (limited to 'test/test-printing.el')
-rw-r--r-- | test/test-printing.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/test-printing.el b/test/test-printing.el index 2260a00..6225bf6 100644 --- a/test/test-printing.el +++ b/test/test-printing.el @@ -7,7 +7,7 @@ `(let ((line (buffer-substring-no-properties (line-beginning-position) (line-end-position)))) - (message "Line here is: %S" line) + (sx-test-message "Line here is: %S" line) (should (string-match ,regexp line)))) (defmacro question-list-regex (title votes answers &rest tags) @@ -27,6 +27,13 @@ after being run through `sx-question--tag-format'." ;;; Tests +(ert-deftest question-list-tag () + "Test `sx-question--tag-format'." + (should + (string= + (sx-question--tag-format "tag") + "[tag]"))) + (ert-deftest question-list-display () (cl-letf (((symbol-function #'sx-request-make) (lambda (&rest _) sx-test-data-questions))) |