Skip to content

Commit a206fb9

Browse files
NoahTheDukejonludlam
authored andcommitted
Add test for delimited code block with meta and output
1 parent 43348e4 commit a206fb9

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/parser/test/test.ml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2947,6 +2947,21 @@ let%expect_test _ =
29472947
((f.ml (1 30) (1 37)) (bold (((f.ml (1 33) (1 36)) (word foo))))))))))))
29482948
(warnings ())) |}]
29492949

2950+
let delimited_code_block_with_meta_and_output =
2951+
test "{delim@ocaml env=f1 version>=4.06 [foo]delim[output {b foo}]}";
2952+
[%expect
2953+
{|
2954+
((output
2955+
(((f.ml (1 0) (1 61))
2956+
(code_block
2957+
(((f.ml (1 7) (1 12)) ocaml)
2958+
(((f.ml (1 13) (1 33)) "env=f1 version>=4.06")))
2959+
((f.ml (1 35) (1 38)) foo)
2960+
((paragraph
2961+
(((f.ml (1 45) (1 51)) (word output)) ((f.ml (1 51) (1 52)) space)
2962+
((f.ml (1 52) (1 59)) (bold (((f.ml (1 55) (1 58)) (word foo))))))))))))
2963+
(warnings ())) |}]
2964+
29502965
(* Code block contains ']['. *)
29512966
let code_block_with_output_without_delim =
29522967
test "{[foo][output {b foo}]}";

0 commit comments

Comments
 (0)