diff options
| author | Wilfred Hughes <me@wilfred.me.uk> | 2018-04-28 12:48:13 +0100 |
|---|---|---|
| committer | Wilfred Hughes <me@wilfred.me.uk> | 2018-04-28 12:48:13 +0100 |
| commit | 09a7b284898dea9d0881092bb9ac0d3ba1ee6925 (patch) | |
| tree | 87304560ab4be15cc03357dc74c681976a6f9638 /test | |
| parent | ec62ad773a4a06c57b271d4151a33dc7e8ec1dda (diff) | |
Add unit tests for helpful--bound-p
Diffstat (limited to 'test')
| -rw-r--r-- | test/unit-test.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/unit-test.el b/test/unit-test.el index 4ec999a..a1351a7 100644 --- a/test/unit-test.el +++ b/test/unit-test.el @@ -504,3 +504,14 @@ find the source code." (equal summary "-select is a function alias for -filter, defined in dash.el.")))) + +(ert-deftest helpful--bound-p () + ;; Functions. + (should (helpful--bound-p 'message)) + ;; Variables + (should (helpful--bound-p 'tab-width)) + ;; Unbound. + (should (not (helpful--bound-p 'this-variable-does-not-exist))) + ;; For our purposes, we don't consider nil or t to be bound. + (should (not (helpful--bound-p 'nil))) + (should (not (helpful--bound-p 't)))) |
