Skip to content

Commit

Permalink
Add a test for multi-line strings
Browse files Browse the repository at this point in the history
Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon committed Dec 4, 2018
1 parent 356436a commit 6d9c0dd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/blackbox-tests/test-cases/fmt/multi-line-strings
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
(echo "\> multi
"\> line
"\> string
)

(echo "\
multi
line
string
")
6 changes: 6 additions & 0 deletions test/blackbox-tests/test-cases/fmt/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,9 @@ and files are not removed when there is an error:
(action
(run %{project_root}/src/let-syntax/pp.exe %{input-file}))))

In multi-line strings, newlines are escape.

$ dune unstable-fmt < multi-line-strings
(echo "multi\nline\nstring\n")

(echo "multi\nline\nstring\n")

0 comments on commit 6d9c0dd

Please sign in to comment.