From cccc18d7049bc0f91cb26e25223396a55b71e68b Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 17 Aug 2023 15:50:42 -0700 Subject: [PATCH] Write render test --- dyesub-tool/src/render.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dyesub-tool/src/render.rs b/dyesub-tool/src/render.rs index 16ffbd7..24a75ed 100644 --- a/dyesub-tool/src/render.rs +++ b/dyesub-tool/src/render.rs @@ -62,4 +62,14 @@ pub fn render(input: &str) -> Result { keyboard: serde_json::from_str(input)?, }; Ok(document.render()?) +} + +#[cfg(test)] +mod tests { + use super::render_file; + + #[test] + fn render() { + render_file("layout.json", "output.svg").unwrap(); + } } \ No newline at end of file