Skip to content

Commit decae21

Browse files
panglesdjonludlam
authored andcommitted
Promote tests for normalized whitespace in code spans
Signed-off-by: Paul-Elliot <[email protected]>
1 parent f4c74f2 commit decae21

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/parser/test/test.ml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -797,8 +797,7 @@ let%expect_test _ =
797797
{|
798798
((output
799799
(((f.ml (1 0) (2 4))
800-
(paragraph (((f.ml (1 0) (2 4)) (code_span "foo\
801-
\nbar")))))))
800+
(paragraph (((f.ml (1 0) (2 4)) (code_span "foo bar")))))))
802801
(warnings ())) |}]
803802

804803
let cr_lf_preserved =
@@ -807,8 +806,7 @@ let%expect_test _ =
807806
{|
808807
((output
809808
(((f.ml (1 0) (2 4))
810-
(paragraph (((f.ml (1 0) (2 4)) (code_span "foo\r\
811-
\nbar")))))))
809+
(paragraph (((f.ml (1 0) (2 4)) (code_span "foo bar")))))))
812810
(warnings ())) |}]
813811

814812
let no_double_new_line =

test/model/semantics/test.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ let%expect_test _ =
551551
test "{2 [foo\nbar\r\nbaz]}";
552552
[%expect
553553
{|
554-
{"value":[{"`Heading":[{"heading_level":"`Subsection","heading_label_explicit":"false"},{"`Label":[{"`Page":["None","f.ml"]},"foo-bar--baz"]},[{"`Code_span":"foo\nbar\r\nbaz"}]]}],"warnings":[]} |}]
554+
{"value":[{"`Heading":[{"heading_level":"`Subsection","heading_label_explicit":"false"},{"`Label":[{"`Page":["None","f.ml"]},"foo-bar-baz"]},[{"`Code_span":"foo bar baz"}]]}],"warnings":[]} |}]
555555

556556
let nested_style =
557557
test "{2 {e foo bar}}";

0 commit comments

Comments
 (0)