Skip to content

Commit

Permalink
Update changelog and tests for clojure-unwind changes
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhan0 authored and bbatsov committed Jul 16, 2019
1 parent d3c46d9 commit 5a3c6ea
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
### New features

* [#496](https://github.com/clojure-emacs/clojure-mode/issues/496): Highlight `[[wikilinks]]` in comments.
* [#366](https://github.com/clojure-emacs/clj-refactor.el/issues/366): Add support for renaming ns aliases (`clojure-rename-ns-alias`).
* [#410](https://github.com/clojure-emacs/clojure-mode/issues/410): Add support for adding an arity to a function (`clojure-add-arity`).
* [#366](https://github.com/clojure-emacs/clj-refactor.el/issues/366): Add support for renaming ns aliases (`clojure-rename-ns-alias`, default binding `C-c C-r n r`).
* [#410](https://github.com/clojure-emacs/clojure-mode/issues/410): Add support for adding an arity to a function (`clojure-add-arity`, default binding `C-c C-r a`), .

### Bugs fixed

Expand All @@ -21,6 +21,7 @@
### Changes

* [#524](https://github.com/clojure-emacs/clojure-mode/issues/524): Add proper indentation rule for `delay` (same as for `future`).
* [#538](https://github.com/clojure-emacs/clojure-mode/pull/538): Refactor `clojure-unwind` to take numeric prefix argument for unwinding N steps, and universal argument for unwinding completely. The dedicated `C-c C-r a` binding for `clojure-unwind-all`is now removed and replaced with the universal arg convention `C-u C-c C-r u`.

## 5.10.0 (2019-01-05)

Expand Down
20 changes: 20 additions & 0 deletions test/clojure-mode-refactor-threading-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,26 @@
(clojure-unwind)
(clojure-unwind))

(when-refactoring-it "should unwind N steps with numeric prefix arg"
"(->> [1 2 3 4 5]
(filter even?)
(map square)
sum)"

"(->> (sum (map square (filter even? [1 2 3 4 5]))))"

(clojure-unwind 3))

(when-refactoring-it "should unwind completely with universal prefix arg"
"(->> [1 2 3 4 5]
(filter even?)
(map square)
sum)"

"(sum (map square (filter even? [1 2 3 4 5])))"

(clojure-unwind '(4)))

(when-refactoring-it "should unwind with function name"
"(->> [1 2 3 4 5]
sum
Expand Down

0 comments on commit 5a3c6ea

Please sign in to comment.