Add test for deserializing unit to string

This commit is contained in:
David Tolnay
2016-12-01 04:46:24 -08:00
parent c6d5d9be14
commit 5e47c87ba0
+3
View File
@@ -215,6 +215,9 @@ declare_tests! {
Token::SeqEnd,
],
}
test_unit_string {
String::new() => &[Token::Unit],
}
test_tuple_struct {
TupleStruct(1, 2, 3) => &[
Token::SeqStart(Some(3)),