Skip to content

Commit

Permalink
adapt tests to Melange 5 changes (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
anmonteiro authored Feb 10, 2025
1 parent e7b0151 commit 7fdbb5e
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 22 deletions.
29 changes: 13 additions & 16 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ppx/test/poly.t
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
We can alias poly varaints:
We can alias poly variants:
$ echo '
> type t = [`A | `B] [@@deriving json]
> type u = t [@@deriving json]
Expand Down
2 changes: 1 addition & 1 deletion ppx/test/ppx_deriving_json_js.e2e.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
> (name lib)
> (modes melange)
> (modules example example_json_string main)
> (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
> (flags :standard -w -20-37-69 -open Ppx_deriving_json_runtime.Primitives)
> (preprocess (pps melange.ppx melange-json.ppx)))
> (melange.emit
> (alias js)
Expand Down
4 changes: 2 additions & 2 deletions ppx/test/ppx_deriving_json_js_variants.e2e.t
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@

$ echo '(lang dune 3.11)
$ echo '(lang dune 3.11)
> (using melange 0.1)' > dune-project

$ echo '
> (library
> (name lib)
> (modes melange)
> (modules main)
> (flags :standard -w -37-69)
> (flags :standard -w -20-37-69)
> (preprocess (pps melange.ppx melange-json.ppx)))
> (melange.emit
> (alias js)
Expand Down
4 changes: 2 additions & 2 deletions ppx/test/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ echo '
(name lib)
(modes melange)
(modules main_js)
(flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
(flags :standard -w -20-37-69 -open Ppx_deriving_json_runtime.Primitives)
(preprocess (pps melange.ppx melange-json.ppx)))
(melange.emit
(alias js)
(target output)
(modules)
(libraries lib)
(module_systems commonjs))
(executable
(executable
(name main)
(modules main)
(flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
Expand Down

0 comments on commit 7fdbb5e

Please sign in to comment.