Skip to content

Commit 89b80c0

Browse files
committed
Reindent tests
1 parent d453656 commit 89b80c0

File tree

1 file changed

+47
-46
lines changed

1 file changed

+47
-46
lines changed

test/inf-clojure-tests.el

Lines changed: 47 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -48,76 +48,77 @@
4848
(expect (inf-clojure--kw-to-symbol "::keyword") :to-equal "keyword")
4949
(expect (inf-clojure--kw-to-symbol nil) :to-equal nil)))
5050

51-
(describe "completion bounds at point" ()
51+
(describe "completion bounds at point"
5252
(it "computes bounds for plain-text"
53-
(ict-with-assess-buffers
54-
((a (insert "plain-text")))
55-
(with-current-buffer a
56-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
57-
:to-equal "plain-text"))))
53+
(ict-with-assess-buffers
54+
((a (insert "plain-text")))
55+
(with-current-buffer a
56+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
57+
:to-equal "plain-text"))))
5858

5959
(it "computes bounds for @deref"
60-
(ict-with-assess-buffers
61-
((a (insert "@deref")))
62-
(with-current-buffer a
63-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
64-
:to-equal "deref"))))
60+
(ict-with-assess-buffers
61+
((a (insert "@deref")))
62+
(with-current-buffer a
63+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
64+
:to-equal "deref"))))
6565

6666
(it "computes bounds for ^:keyword"
67-
(ict-with-assess-buffers
68-
((a (insert "^:keyword")))
69-
(with-current-buffer a
70-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
71-
:to-equal ":keyword"))))
67+
(ict-with-assess-buffers
68+
((a (insert "^:keyword")))
69+
(with-current-buffer a
70+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
71+
:to-equal ":keyword"))))
7272

7373
(it "computes bounds for ::keyword"
74-
(ict-with-assess-buffers
75-
((a (insert "::keyword")))
76-
(with-current-buffer a
77-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
78-
:to-equal "::keyword"))))
74+
(ict-with-assess-buffers
75+
((a (insert "::keyword")))
76+
(with-current-buffer a
77+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
78+
:to-equal "::keyword"))))
7979

8080
(it "computes bounds for [^:keyword (combined break chars and keyword)"
81-
(ict-with-assess-buffers
82-
((a (insert "[^:keyword")))
83-
(with-current-buffer a
84-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
85-
:to-equal ":keyword"))))
81+
(ict-with-assess-buffers
82+
((a (insert "[^:keyword")))
83+
(with-current-buffer a
84+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
85+
:to-equal ":keyword"))))
8686

8787
(it "computes no bounds for point directly after a break expression"
88-
(ict-with-assess-buffers
89-
((a (insert "@")))
90-
(with-current-buffer a
91-
(expect
92-
(ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
93-
:not :to-be nil))))
88+
(ict-with-assess-buffers
89+
((a (insert "@")))
90+
(with-current-buffer a
91+
(expect
92+
(ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
93+
:not :to-be nil))))
9494

9595
(it "computes bounds for [symbol"
96-
(ict-with-assess-buffers
97-
((a (insert "[symbol")))
98-
(with-current-buffer a
99-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
100-
:to-equal "symbol"))))
96+
(ict-with-assess-buffers
97+
((a (insert "[symbol")))
98+
(with-current-buffer a
99+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
100+
:to-equal "symbol"))))
101101

102102
(it "computes bounds for (@deref (multiple break chars)"
103-
(ict-with-assess-buffers
104-
((a (insert "(@deref")))
105-
(with-current-buffer a
106-
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
107-
:to-equal "deref")))))
103+
(ict-with-assess-buffers
104+
((a (insert "(@deref")))
105+
(with-current-buffer a
106+
(expect (ict-bounds-string (inf-clojure-completion-bounds-of-expr-at-point))
107+
:to-equal "deref")))))
108108

109109
(describe "inf-clojure--sanitize-command"
110110
(it "sanitizes the command correctly"
111-
(expect (inf-clojure--sanitize-command "(doc println)") :to-equal "(doc println)\n"))
111+
(expect (inf-clojure--sanitize-command "(doc println)") :to-equal "(doc println)\n"))
112112

113113
(it "trims newline at the right of a command"
114-
(expect (inf-clojure--sanitize-command "(doc println)\n\n\n\n") :to-equal "(doc println)\n"))
114+
(expect (inf-clojure--sanitize-command "(doc println)\n\n\n\n") :to-equal "(doc println)\n"))
115115

116116
(it "returns empty string when the command is empty"
117-
(expect (inf-clojure--sanitize-command " ") :to-equal ""))
117+
(expect (inf-clojure--sanitize-command " ") :to-equal ""))
118118

119119
(it "only removes whitespace at the end of the command - fix 152"
120-
(expect (inf-clojure--sanitize-command "1 5") :to-equal "1 5\n")))
120+
(expect (inf-clojure--sanitize-command "1 5") :to-equal "1 5\n")))
121+
121122

122123
(describe "inf-clojure--update-feature"
123124
(it "updates new forms correctly"

0 commit comments

Comments
 (0)