Skip to content

Commit

Permalink
add test for multiple signature items
Browse files Browse the repository at this point in the history
<!-- ps-id: 597fd8ce-d920-40ad-b1e3-2bad11222b23 -->
  • Loading branch information
tatchi committed Feb 7, 2023
1 parent 54e5278 commit 8c96606
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src_test/ppx_deriving/errors/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,17 @@ Cannot find module error
^^^^^^^^^
Error: [%import]: cannot find the module type M in Stuff.S
[1]

Multiple signature items
$ cat >test.ml <<EOF
> [%%import:
> type b = int
> type a = string]
> EOF
$ dune build
File "test.ml", lines 1-3, characters 0-16:
1 | [%%import:
2 | type b = int
3 | type a = string]
Error: [] expected
[1]
14 changes: 14 additions & 0 deletions src_test/ppx_deriving/errors_lte_407/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,17 @@ Cannot find module error
File "test.ml", line 1, characters 34-43:
Error: [%import]: cannot find the module type M in Stuff.S
[1]

Multiple signature items
$ cat >test.ml <<EOF
> [%%import:
> type b = int
> type a = string]
> EOF
$ dune build
File "test.ml", lines 1-3, characters 0-16:
1 | [%%import:
2 | type b = int
3 | type a = string]
Error: [] expected
[1]

0 comments on commit 8c96606

Please sign in to comment.