X-Git-Url: http://git.scottworley.com/tablify/blobdiff_plain/5ffe8e3a8394fc46b50659b0e197b0b0a22e18c8..25fd008e11cc44e03ddf0ac12da513c27bfe7a95:/src/lib.rs?ds=inline 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#"