})
]
);
+ assert_eq!(
+ read_rows(&b"foo\n\n\nbar\n"[..])
+ .flatten()
+ .collect::<Vec<_>>(),
+ vec![
+ Rowlike::Row(Row {
+ label: "foo".to_owned(),
+ entries: HashMap::new(),
+ }),
+ Rowlike::Row(Row {
+ label: "bar".to_owned(),
+ entries: HashMap::new(),
+ })
+ ]
+ );
assert_eq!(
read_rows(&b"foo\n \nbar\n"[..])
.flatten()