Skip to content

Commit 0810010

Browse files
Add (failing) indentation test for first line after opening bracket
1 parent 0ce19f2 commit 0810010

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/fsharp-mode-structure-tests.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,3 +271,11 @@
271271
(should (eq (fsharp--compute-indentation-relative-to-previous t) 4))
272272
(should (eq (fsharp--compute-indentation-relative-to-previous t)
273273
(fsharp-compute-indentation t))))))
274+
275+
(describe "The `fsharp-compute-indentation'"
276+
:var ((file (concat fsharp-struct-test-files-dir "BracketIndent.fs")))
277+
(it "indents on the first line after opening bracket"
278+
(with-current-buffer (find-file-noselect file)
279+
(goto-char (point-min))
280+
(search-forward-regexp "let formatTwo = \\[\n")
281+
(should (eq (fsharp-compute-indentation t) fsharp-indent-offset)))))

0 commit comments

Comments
 (0)