mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-04-23 08:18:03 +00:00
add tests to deserializing sequences into a tuple
This commit is contained in:
@@ -2897,6 +2897,13 @@ mod tests {
|
||||
test_parse_ok([
|
||||
("[[3], [1, 2]]", vec!(vec!(3i), vec!(1, 2))),
|
||||
]);
|
||||
|
||||
let v: () = from_iter("[]".chars()).unwrap();
|
||||
assert_eq!(v, ());
|
||||
|
||||
test_parse_ok([
|
||||
("[1, 2, 3]", (1u, 2u, 3u)),
|
||||
]);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in New Issue
Block a user