Skip to content

Commit

Permalink
Add tests for --break-separators=after.
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Del Vecchio <tdelvecchio@janestreet.com>
  • Loading branch information
tdelvecchio-jsc committed Jun 26, 2024
1 parent e7f3f85 commit 2526cf1
Show file tree
Hide file tree
Showing 4 changed files with 397 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/passing/dune.inc
Original file line number Diff line number Diff line change
Expand Up @@ -8113,6 +8113,24 @@
(package ocamlformat)
(action (diff tests/modes_attrs.ml.js-err modes_attrs.ml.js-stderr)))

(rule
(deps tests/.ocamlformat )
(package ocamlformat)
(action
(with-stdout-to modes_cmts-break_separators_after.ml.stdout
(with-stderr-to modes_cmts-break_separators_after.ml.stderr
(run %{bin:ocamlformat} --margin-check --break-separators=after %{dep:tests/modes_cmts.ml})))))

(rule
(alias runtest)
(package ocamlformat)
(action (diff tests/modes_cmts-break_separators_after.ml.ref modes_cmts-break_separators_after.ml.stdout)))

(rule
(alias runtest)
(package ocamlformat)
(action (diff tests/modes_cmts-break_separators_after.ml.err modes_cmts-break_separators_after.ml.stderr)))

(rule
(deps tests/.ocamlformat )
(package ocamlformat)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--break-separators=after
Loading

0 comments on commit 2526cf1

Please sign in to comment.