diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-16 14:51:19 +0000 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2017-12-16 14:51:19 +0000 |
| commit | 77932d1fb4df5128c7d50c09852a181172a01021 (patch) | |
| tree | 442953a2a89435c0c252eba29f0b640e8961d143 /test | |
| parent | b1ba2cf78e2d8e4a3b78fcf18478aa0b5bc6c721 (diff) | |
Add unit tests for helpful--pretty-print
Ensure #54 stays fixed.
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 69e45be..a24f3f9 100644 --- a/test/unit-test.el +++ b/test/unit-test.el @@ -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))) |
