From: Scott Worley Date: Wed, 25 Sep 2024 05:40:19 +0000 (-0700) Subject: render_row() test X-Git-Tag: v0.3.0~13 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/25fd008e11cc44e03ddf0ac12da513c27bfe7a95?ds=inline render_row() test --- diff --git a/src/lib.rs b/src/lib.rs index cfaeb4b..47e1d3a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -551,4 +551,21 @@ mod tests { render_cell("baz", &mut r); assert_eq!(r.entries.len(), 0); } + + #[test] + fn test_render_row() { + assert_eq!( + render_row( + &["foo".to_owned()], + &mut Row { + label: "nope".to_owned(), + entries: HashMap::from([("bar".to_owned(), vec![None])]), + } + ), + HTML::from( + r#"nope +"# + ) + ); + } }