lil babie change to that last test :3
This commit is contained in:
parent
f382dcb03b
commit
fa6f8b1fd6
|
@ -96,13 +96,13 @@ mod tests {
|
||||||
parser
|
parser
|
||||||
.parse(
|
.parse(
|
||||||
"test.html",
|
"test.html",
|
||||||
b"<p>{% extends \"base.html\" %}\n{% import \"macros.html\" %}\n{% block content %}</p>\n<div><p>hi :3</p></div>{% endblock content %}",
|
b"<p>{% extends \"base.html\" %}\n{% import \"macros.html\" as macros %}\n{% block content %}</p>\n<div><p>hi :3</p></div>{% endblock content %}",
|
||||||
&mut buf,
|
&mut buf,
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
"{% extends \"base.html\" %}\n{% import \"macros.html\" %}\n{% block content %}\n<div><p>hi :3</p></div>{% endblock content %}",
|
"{% extends \"base.html\" %}\n{% import \"macros.html\" as macros %}\n{% block content %}\n<div><p>hi :3</p></div>{% endblock content %}",
|
||||||
String::from_utf8_lossy(&buf)
|
String::from_utf8_lossy(&buf)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue