Skip to content

Commit

Permalink
Fix test error messages indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
anemes-godaddy committed Aug 30, 2024
1 parent f24a52a commit 8742468
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions test_suite/tests/test_enum_untagged.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ fn complex() {
assert_de_tokens_error::<Untagged>(
&[Token::Tuple { len: 1 }, Token::U8(1), Token::TupleEnd],
"data did not match any variant of untagged enum `Untagged`
\t- attempted to deserialize `A` but failed with: invalid type: sequence, expected struct variant Untagged::A
\t- attempted to deserialize `B` but failed with: invalid type: sequence, expected struct variant Untagged::B
\t- attempted to deserialize `C` but failed with: invalid type: sequence, expected unit variant Untagged::C
\t- attempted to deserialize `D` but failed with: invalid type: sequence, expected u8
\t- attempted to deserialize `E` but failed with: invalid type: sequence, expected a string
\t- attempted to deserialize `F` but failed with: invalid length 1, expected tuple variant Untagged::F with 2 elements"
\t- attempted to deserialize `A` but failed with: invalid type: sequence, expected struct variant Untagged::A
\t- attempted to deserialize `B` but failed with: invalid type: sequence, expected struct variant Untagged::B
\t- attempted to deserialize `C` but failed with: invalid type: sequence, expected unit variant Untagged::C
\t- attempted to deserialize `D` but failed with: invalid type: sequence, expected u8
\t- attempted to deserialize `E` but failed with: invalid type: sequence, expected a string
\t- attempted to deserialize `F` but failed with: invalid length 1, expected tuple variant Untagged::F with 2 elements"
);

assert_de_tokens_error::<Untagged>(
Expand All @@ -89,12 +89,12 @@ fn complex() {
Token::TupleEnd,
],
"data did not match any variant of untagged enum `Untagged`
\t- attempted to deserialize `A` but failed with: invalid type: sequence, expected struct variant Untagged::A
\t- attempted to deserialize `B` but failed with: invalid type: sequence, expected struct variant Untagged::B
\t- attempted to deserialize `C` but failed with: invalid type: sequence, expected unit variant Untagged::C
\t- attempted to deserialize `D` but failed with: invalid type: sequence, expected u8
\t- attempted to deserialize `E` but failed with: invalid type: sequence, expected a string
\t- attempted to deserialize `F` but failed with: invalid length 3, expected 2 elements in sequence"
\t- attempted to deserialize `A` but failed with: invalid type: sequence, expected struct variant Untagged::A
\t- attempted to deserialize `B` but failed with: invalid type: sequence, expected struct variant Untagged::B
\t- attempted to deserialize `C` but failed with: invalid type: sequence, expected unit variant Untagged::C
\t- attempted to deserialize `D` but failed with: invalid type: sequence, expected u8
\t- attempted to deserialize `E` but failed with: invalid type: sequence, expected a string
\t- attempted to deserialize `F` but failed with: invalid length 3, expected 2 elements in sequence"
);
}

Expand Down

0 comments on commit 8742468

Please sign in to comment.