File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
(eldev-use-plugin 'autoloads )
12
12
13
- (eldev-add-extra-dependencies 'test 'buttercup 's )
13
+ (eldev-add-extra-dependencies 'test 'buttercup )
14
14
15
15
(setq byte-compile-docstring-max-column 240 )
16
16
(setq checkdoc-force-docstrings-flag nil )
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ DESCRIPTION is a string with the description of the spec."
43
43
(declare (indent 1 ))
44
44
`(it , description
45
45
(let* ((after , after )
46
- (expected-cursor-pos (1+ (s-index-of " |" after)))
46
+ (expected-cursor-pos (1+ (clojure-ts-- s-index-of " |" after)))
47
47
(expected-state (delete ?| after)))
48
48
(with-clojure-ts-buffer , before
49
49
(goto-char (point-min ))
Original file line number Diff line number Diff line change @@ -46,4 +46,13 @@ and point left there."
46
46
(delete-char -1 )
47
47
,@body )))
48
48
49
+ (defun clojure-ts--s-index-of (needle s &optional ignore-case )
50
+ " Returns first index of NEEDLE in S, or nil.
51
+
52
+ If IGNORE-CASE is non-nil, the comparison is done without paying
53
+ attention to case differences."
54
+ (declare (pure t ) (side-effect-free t ))
55
+ (let ((case-fold-search ignore-case))
56
+ (string-match-p (regexp-quote needle) s)))
57
+
49
58
; ;; test-helper.el ends here
You can’t perform that action at this time.
0 commit comments