diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-16 12:52:14 -0200 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2015-01-16 13:09:07 -0200 |
commit | 148da420d9f464f3cc8046fed99a103af0fd7bed (patch) | |
tree | 1b6a27333f01c1fb1df0a125d4ffe4dcea8bc90a | |
parent | 802f778bb28506d9be92618913c8db0cb4eda539 (diff) |
Test displaying a question
-rw-r--r-- | test/test-printing.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/test-printing.el b/test/test-printing.el index 677dca3..9512a5e 100644 --- a/test/test-printing.el +++ b/test/test-printing.el @@ -146,6 +146,14 @@ after being run through `sx-question--tag-format'." (should (equal object '((answers . [something "answer"])))))) + +;;; question-mode +(ert-deftest sx-display-question () + (should + (sx-display-question sx-test-data-questions)) + (should-error + (sx-display-question sx-test-data-questions nil 1))) + (ert-deftest sx-question-mode--fill-and-fontify () "Check complicated questions are filled correctly." (should @@ -202,3 +210,4 @@ if you used the Stack Exchange login method, you'd... [1]: http://i.stack.imgur.com/ktFTs.png [2]: http://i.stack.imgur.com/5l2AY.png [3]: http://i.stack.imgur.com/22myl.png"))) + |