Skip to content

Commit

Permalink
Port more enum tests to new integration test style
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Sep 9, 2024
1 parent 866629e commit 63b90f5
Show file tree
Hide file tree
Showing 14 changed files with 575 additions and 440 deletions.
127 changes: 0 additions & 127 deletions schemars/tests/enum_deny_unknown_fields.rs

This file was deleted.

45 changes: 0 additions & 45 deletions schemars/tests/expected/enum-simple-internal-duf.json

This file was deleted.

42 changes: 0 additions & 42 deletions schemars/tests/expected/enum-simple-internal.json

This file was deleted.

16 changes: 16 additions & 0 deletions schemars/tests/integration/enums.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ impl External {
.collect(),
),
Self::UnitStructNewType(UnitStruct),
Self::StructNewType(Struct {
foo: 123,
bar: true,
}),
Self::Struct {
foo: 123,
bar: true,
Expand Down Expand Up @@ -85,6 +89,10 @@ impl Internal {
.collect(),
),
Self::UnitStructNewType(UnitStruct),
Self::StructNewType(Struct {
foo: 123,
bar: true,
}),
Self::Struct {
foo: 123,
bar: true,
Expand Down Expand Up @@ -128,6 +136,10 @@ impl Adjacent {
.collect(),
),
Self::UnitStructNewType(UnitStruct),
Self::StructNewType(Struct {
foo: 123,
bar: true,
}),
Self::Struct {
foo: 123,
bar: true,
Expand Down Expand Up @@ -171,6 +183,10 @@ impl Untagged {
.collect(),
),
Self::UnitStructNewType(UnitStruct),
Self::StructNewType(Struct {
foo: 123,
bar: true,
}),
Self::Struct {
foo: 123,
bar: true,
Expand Down
Loading

0 comments on commit 63b90f5

Please sign in to comment.