aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWilfred Hughes <me@wilfred.me.uk>2018-08-02 23:07:17 -0700
committerWilfred Hughes <me@wilfred.me.uk>2018-08-02 23:07:53 -0700
commit42668225122e61c2d3c28cf395dce5134ea4efc2 (patch)
tree06fa04edfa02f162272be4434432f5643d4341b3 /test
parent691064ef0c35d343478891dc71366c058d9156a6 (diff)
Extract source code for advised primitives
Resolves #141
Diffstat (limited to 'test')
-rw-r--r--test/unit-test.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/unit-test.el b/test/unit-test.el
index 9732e19..7feb8a0 100644
--- a/test/unit-test.el
+++ b/test/unit-test.el
@@ -118,10 +118,9 @@ symbol (not a form)."
;; Defined in elisp.
(should (not (helpful--primitive-p 'when t))))
-(ert-deftest helpful--primitive-p-fail ()
- :expected-result :failed
- ;; `rename-buffer' is primitive, but it's advised (by uniquify), and
- ;; this confuses `helpful--primitive-p'.
+(ert-deftest helpful--primitive-p--advised ()
+ "Ensure we handly advised primitive functions correctly."
+ ;; `rename-buffer' is primitive, but it's advised by uniquify.
(should (helpful--primitive-p 'rename-buffer t)))
(ert-deftest helpful-callable ()