|
56 | 56 | (it "should align let arguments instead of using body indentation" |
57 | 57 | (with-edn-buffer "\n(let [x 1]\nx)" |
58 | 58 | (indent-region (point-min) (point-max)) |
59 | | - (expect (buffer-string) :to-equal "\n(let [x 1]\n x)"))) |
| 59 | + (expect (buffer-string) :to-equal "\n(let [x 1]\n x)"))) |
60 | 60 |
|
61 | 61 | (it "should align if arguments instead of using body indentation" |
62 | 62 | (with-edn-buffer "\n(if true\n1\n2)" |
63 | 63 | (indent-region (point-min) (point-max)) |
64 | | - (expect (buffer-string) :to-equal "\n(if true\n 1\n 2)"))) |
| 64 | + (expect (buffer-string) :to-equal "\n(if true\n 1\n 2)"))) |
65 | 65 |
|
66 | 66 | (it "should align cond arguments instead of using body indentation" |
67 | 67 | (with-edn-buffer "\n(cond a\nb)" |
68 | 68 | (indent-region (point-min) (point-max)) |
69 | | - (expect (buffer-string) :to-equal "\n(cond a\n b)"))) |
| 69 | + (expect (buffer-string) :to-equal "\n(cond a\n b)"))) |
70 | 70 |
|
71 | 71 | (it "should align do arguments instead of using body indentation" |
72 | 72 | (with-edn-buffer "\n(do a\nb)" |
73 | 73 | (indent-region (point-min) (point-max)) |
74 | | - (expect (buffer-string) :to-equal "\n(do a\n b)")))) |
| 74 | + (expect (buffer-string) :to-equal "\n(do a\n b)"))) |
| 75 | + |
| 76 | + (it "should align keyword lists as data (issue #610)" |
| 77 | + (with-edn-buffer "\n(:key1 :value1\n:key2 :value2)" |
| 78 | + (indent-region (point-min) (point-max)) |
| 79 | + (expect (buffer-string) :to-equal "\n(:key1 :value1\n :key2 :value2)")))) |
75 | 80 |
|
76 | 81 | (describe "maps, vectors, and sets indent normally" |
77 | 82 |
|
|
0 commit comments