Closed duianto closed 6 years ago
hum... interesting. Will take a look at this. I'll summon @justbur which is the author of the fix. I've just written these tests. Maybe some api breakage from emacs 25 t o26. which is odd.
I'm guessing it's related to this change, https://github.com/emacs-mirror/emacs/commit/dc9c6a071c0c12be2bd490f85107486bca44623e#diff-eae606e7f95addb6efcd3f7703a53658. I'll look into it.
@justbur, I've just ran the tests into emacs git HEAD. it is confirmed
thanks @duianto, should be fixed in the next melpa build. @justbur, perfect work as always. Thanks!
It's working now, thanks.
Description
Two tests fail in Emacs 26.0.50:
(ert-info ("more examples from readme: function surrounding with dot repeat")
and(ert-info ("even more examples from readme: tag surrounding with dot repeat")
The other tests in
evil-surround-test.el
pass in Emacs 26, and all tests pass in Emacs 25.3.1.System Info
Steps to reproduce
.emacs.d/
directory.C-x b
type:test
press:RET
M-x
evil-mode
RET
M-x
emacs-lisp-mode
test
buffer:(require 'evil-test-helpers)
(ert-deftest evil-surround-test () (ert-info ("more examples from readme: function surrounding with dot repeat") (evil-test-buffer :visual-start nil :visual-end nil "argument1 argument2" (turn-on-evil-surround-mode) ("ysiwffunction" [return]) "function(argument1) argument2" ("W.") "function(argument1) function(argument2)")) (ert-info ("even more examples from readme: tag surrounding with dot repeat") (evil-test-buffer :visual-start nil :visual-end nil "tag1 tag2" (turn-on-evil-surround-mode) ("ysiw") "tag1 tag2" ("W.") "tag1 tag2")))
(ert 'evil-surround-test)
F evil-surround-test Info: more examples from readme: function surrounding with dot repeat (ert-test-failed ((should (string= (buffer-substring (point) (min ... ...)) after)) :form (string= "function(argument1) functioniwf(argumen" "function(argument1) function(argument2)") :value nil))
(ert-info ("more examples from readme: function surrounding with dot repeat") (evil-test-buffer :visual-start nil :visual-end nil "argument1 argument2" (turn-on-evil-surround-mode) ("ysiwffunction" [return]) "function(argument1) argument2" ("W.") "function(argument1) function(argument2)"))
F evil-surround-test Info: even more examples from readme: tag surrounding with dot repeat (ert-test-failed ((should (string= (buffer-substring (point) (min ... ...)) after)) :form (string= "tag1 <aiw<>tag2<" "tag1 tag2") :value nil))