test suite: use new render html api

This commit is contained in:
Noah Hellman 2023-02-11 15:04:20 +01:00
parent 77f4a9114a
commit ff6f1554e2

View file

@ -7,11 +7,12 @@ mod suite;
#[macro_export]
macro_rules! suite_test {
($src:expr, $expected:expr) => {
use jotdown::Render;
let src = $src;
let expected = $expected;
let p = jotdown::Parser::new(src);
let mut actual = String::new();
jotdown::html::push(p, &mut actual);
jotdown::html::Renderer.push(p, &mut actual).unwrap();
assert_eq!(
actual.trim(),
expected.trim(),