From 25fd008e11cc44e03ddf0ac12da513c27bfe7a95 Mon Sep 17 00:00:00 2001 From: Scott Worley Date: Tue, 24 Sep 2024 22:40:19 -0700 Subject: [PATCH 1/1] render_row() test --- src/lib.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 +"# + ) + ); + } } -- 2.44.1