Skip to content

Commit

Permalink
test: promote new derive changes
Browse files Browse the repository at this point in the history
  • Loading branch information
maxRN committed Oct 1, 2024
1 parent eb757e5 commit 57c8f17
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions derive/variants.t/run.t
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ $ externally tagged variant
unsafe_string = false;
cookies = []
}]
[@@@warning "-37"]
type rank =
| Captain of {
name: string ;
Expand Down Expand Up @@ -362,7 +361,6 @@ $ adjacently tagged variant
unsafe_string = false;
cookies = []
}]
[@@@warning "-37"]
type rank =
| Captain of {
name: string ;
Expand Down
4 changes: 1 addition & 3 deletions derive/variants.t/variant_adjacently_tagged_test.ml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[@@@warning "-37"]

type rank =
| Captain of { name : string; ship : string }
| Commander of string * int32 * float
| Lt of bool option
| Ensign
[@@deriving serialize, deserialize] [@@serde {tag = "t"; content = "c"}]
[@@deriving serialize, deserialize] [@@serde { tag = "t"; content = "c" }]

type ranks = Ranks of rank list [@@deriving serialize, deserialize]

Expand Down
2 changes: 0 additions & 2 deletions derive/variants.t/variant_externally_tagged_test.ml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
[@@@warning "-37"]

type rank =
| Captain of { name : string; ship : string }
| Commander of string * int32 * float
Expand Down
4 changes: 1 addition & 3 deletions derive/variants.t/variant_internally_tagged_test.ml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
[@@@warning "-37"]

type rank =
| Captain of { name : string; ship : string }
| Commander of string * int32 * float
| Lt of bool option
| Ensign
[@@deriving serialize, deserialize] [@@serde {tag = "t"}]
[@@deriving serialize, deserialize] [@@serde { tag = "t" }]

type ranks = Ranks of rank list [@@deriving serialize, deserialize]

Expand Down

0 comments on commit 57c8f17

Please sign in to comment.