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_export]
|
||||||
macro_rules! suite_test {
|
macro_rules! suite_test {
|
||||||
($src:expr, $expected:expr) => {
|
($src:expr, $expected:expr) => {
|
||||||
|
use jotdown::Render;
|
||||||
let src = $src;
|
let src = $src;
|
||||||
let expected = $expected;
|
let expected = $expected;
|
||||||
let p = jotdown::Parser::new(src);
|
let p = jotdown::Parser::new(src);
|
||||||
let mut actual = String::new();
|
let mut actual = String::new();
|
||||||
jotdown::html::push(p, &mut actual);
|
jotdown::html::Renderer.push(p, &mut actual).unwrap();
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
actual.trim(),
|
actual.trim(),
|
||||||
expected.trim(),
|
expected.trim(),
|
||||||
|
|
Loading…
Reference in a new issue