X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/06a6a5cad195d0b7504c4e7b4caf085487f53578..722ea29747d6e820490db0bf988cda86c3341565:/src/lib.rs diff --git a/src/lib.rs b/src/lib.rs index 73e517b..e11f08b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -410,6 +410,21 @@ mod tests { }) ] ); + assert_eq!( + read_rows(&b"foo\n\n\nbar\n"[..]) + .flatten() + .collect::>(), + 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()