test suite: use new render html api
This commit is contained in:
parent
77f4a9114a
commit
ff6f1554e2
1 changed files with 2 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue