We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ce19f2 commit 0810010Copy full SHA for 0810010
test/fsharp-mode-structure-tests.el
@@ -271,3 +271,11 @@
271
(should (eq (fsharp--compute-indentation-relative-to-previous t) 4))
272
(should (eq (fsharp--compute-indentation-relative-to-previous t)
273
(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