leaving slash in place is simple when you change nothing
This commit is contained in:
@@ -319,7 +319,6 @@ the description. This may destroy existing links, or change their targets so use
|
||||
"")))
|
||||
|
||||
|
||||
(ert "markdown.*")
|
||||
(defun qwan-echo (new-name)
|
||||
(interactive "SRename function to:")
|
||||
(message "Will rename to %s" new-name)
|
||||
@@ -358,3 +357,12 @@ the description. This may destroy existing links, or change their targets so use
|
||||
(insert (s-dashed-words new-name))
|
||||
(message "Renamed %s to %s." old-name new-name)))
|
||||
(message "No symbol under cursor."))))
|
||||
|
||||
(defun as-function-name (candidate-name)
|
||||
candidate-name)
|
||||
|
||||
(ert-deftest refactor-rename-should-leave-forward-slash()
|
||||
(should (equal (as-function-name "qwan/echo")
|
||||
"qwan/echo")))
|
||||
|
||||
(ert "refactor.*")
|
||||
|
||||
Reference in New Issue
Block a user