Skip to content

Commit 7fdbb5e

Browse files
authored
adapt tests to Melange 5 changes (#56)
1 parent e7b0151 commit 7fdbb5e

File tree

5 files changed

+19
-22
lines changed

5 files changed

+19
-22
lines changed

flake.lock

Lines changed: 13 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ppx/test/poly.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
We can alias poly varaints:
1+
We can alias poly variants:
22
$ echo '
33
> type t = [`A | `B] [@@deriving json]
44
> type u = t [@@deriving json]

ppx/test/ppx_deriving_json_js.e2e.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
> (name lib)
88
> (modes melange)
99
> (modules example example_json_string main)
10-
> (flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
10+
> (flags :standard -w -20-37-69 -open Ppx_deriving_json_runtime.Primitives)
1111
> (preprocess (pps melange.ppx melange-json.ppx)))
1212
> (melange.emit
1313
> (alias js)

ppx/test/ppx_deriving_json_js_variants.e2e.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11

2-
$ echo '(lang dune 3.11)
2+
$ echo '(lang dune 3.11)
33
> (using melange 0.1)' > dune-project
44

55
$ echo '
66
> (library
77
> (name lib)
88
> (modes melange)
99
> (modules main)
10-
> (flags :standard -w -37-69)
10+
> (flags :standard -w -20-37-69)
1111
> (preprocess (pps melange.ppx melange-json.ppx)))
1212
> (melange.emit
1313
> (alias js)

ppx/test/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ echo '
1313
(name lib)
1414
(modes melange)
1515
(modules main_js)
16-
(flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)
16+
(flags :standard -w -20-37-69 -open Ppx_deriving_json_runtime.Primitives)
1717
(preprocess (pps melange.ppx melange-json.ppx)))
1818
(melange.emit
1919
(alias js)
2020
(target output)
2121
(modules)
2222
(libraries lib)
2323
(module_systems commonjs))
24-
(executable
24+
(executable
2525
(name main)
2626
(modules main)
2727
(flags :standard -w -37-69 -open Ppx_deriving_json_runtime.Primitives)

0 commit comments

Comments
 (0)