Skip to content

Commit

Permalink
Add unit tests for helpful--pretty-print
Browse files Browse the repository at this point in the history
Ensure Wilfred#54 stays fixed.
  • Loading branch information
Wilfred committed Dec 16, 2017
1 parent b1ba2cf commit 77932d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/unit-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -188,3 +188,10 @@ buffers lying around."
(equal
(helpful--kind-name 'save-excursion t)
"special form")))

(ert-deftest helpful--pretty-print ()
;; Strings should be formatted with double-quotes.
(should (equal "\"foo\"" (helpful--pretty-print "foo")))
;; Don't crash on large plists using keywords.
(helpful--pretty-print
'(:foo foooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo :bar bar)))

0 comments on commit 77932d1

Please sign in to comment.