diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-02-29 10:26:52 -0300 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2016-02-29 10:26:52 -0300 |
commit | af93884e7f6524cc9fd93d2bde65a8fd6a079ddc (patch) | |
tree | 18d37f3598cfec13b224a24f072398be1d32aed4 /test | |
parent | 1e1ff3c3c87cec9ac093b50518d85c629c892983 (diff) |
[Fix #1593] Don't move point in cider-symbol-at-point
Diffstat (limited to 'test')
-rw-r--r-- | test/cider-util-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/cider-util-tests.el b/test/cider-util-tests.el new file mode 100644 index 00000000..0ea18864 --- /dev/null +++ b/test/cider-util-tests.el @@ -0,0 +1,12 @@ +(require 'cider) +(require 'cider-util) +(require 'ert) + +;;; cider-util tests +(ert-deftest cider-symbol-at-point-dont-move () + (with-temp-buffer + (clojure-mode) + (insert "something else\n") + (should (not (cider-symbol-at-point))) + (should (equal "else" (cider-symbol-at-point 'lookback))) + (should (= (point) (point-max))))) |