+ assert_eq!(
+ read_rows(&b"bar"[..]).collect::<Vec<_>>(),
+ vec![RowInput {
+ label: String::from("bar"),
+ entries: vec![]
+ }]
+ );
+ assert_eq!(
+ read_rows(&b"foo\nbar\n"[..]).collect::<Vec<_>>(),
+ vec![
+ RowInput {
+ label: String::from("foo"),
+ entries: vec![]
+ },
+ RowInput {
+ label: String::from("bar"),
+ entries: vec![]
+ }
+ ]
+ );