From: Scott Worley Date: Thu, 26 Sep 2024 03:52:08 +0000 (-0700) Subject: Verify double-line-skip behavior without spacer rows X-Git-Tag: v0.3.0~5 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/722ea29747d6e820490db0bf988cda86c3341565?ds=inline Verify double-line-skip behavior without spacer rows --- 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()