Use struct variants in test suite

This commit is contained in:
David Tolnay
2017-04-19 13:06:31 -07:00
parent 4767ca3f5d
commit 15341780a2
5 changed files with 243 additions and 243 deletions
+3 -3
View File
@@ -69,7 +69,7 @@ fn test_tuple() {
assert_de_tokens(
&("str", &b"bytes"[..]),
&[
Token::Tuple(2),
Token::Tuple { len: 2 },
Token::BorrowedStr("str"),
Token::BorrowedBytes(b"bytes"),
Token::TupleEnd,
@@ -91,7 +91,7 @@ fn test_struct() {
bb: b"bytes",
},
&[
Token::Struct("Borrowing", 2),
Token::Struct { name: "Borrowing", len: 2 },
Token::BorrowedStr("bs"),
Token::BorrowedStr("str"),
@@ -115,7 +115,7 @@ fn test_cow() {
}
let tokens = &[
Token::Struct("Cows", 2),
Token::Struct { name: "Cows", len: 2 },
Token::Str("copied"),
Token::BorrowedStr("copied"),