This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-01-05
Channels
- # announcements (2)
- # beginners (44)
- # calva (7)
- # cider (8)
- # cljs-dev (2)
- # clojure (131)
- # clojure-serbia (2)
- # clojure-spec (3)
- # clojure-uk (56)
- # clojurescript (27)
- # cursive (7)
- # datomic (6)
- # fulcro (25)
- # jobs (3)
- # klipse (3)
- # leiningen (2)
- # off-topic (8)
- # overtone (2)
- # pathom (2)
- # portkey (2)
- # re-frame (2)
- # reagent (10)
- # shadow-cljs (44)
- # spacemacs (1)
- # tools-deps (6)
- # uncomplicate (2)
Can someone help me debugging this https://travis-ci.org/clojure-emacs/clojure-mode/jobs/475661304
A trivial change resulted in this failure I cannot figure out. The two failing tests work from Emacs when you run them interactively with ert
, but break down with make cask
.
It’s some mess with the macroexpansion, but it seems like the test macro expands properly, even if it doesn’t work properly… The many joys of macros. 🙂
(macroexpand-1 '(def-full-indent-test align-arguments
'align-arguments
"(some-function
10
1
2)"
"(some-function 10
1
2)"))
(ert-deftest test-backtracking-align-arguments nil
(progn
(with-temp-buffer
(clojure-mode)
(insert "\n" "(some-function\n 10\n 1\n 2)")
(let
((clojure-indent-style 'align-arguments))
(indent-region
(point-min)
(point-max)))
(should
(equal
(buffer-string)
"\n(some-function\n 10\n 1\n 2)")))
(with-temp-buffer
(clojure-mode)
(insert "\n" "(some-function 10\n 1\n 2)")
(let
((clojure-indent-style 'align-arguments))
(indent-region
(point-min)
(point-max)))
(should
(equal
(buffer-string)
"\n(some-function 10\n 1\n 2)")))))