Add test for nested comment block

This commit is contained in:
Kogia-sima 2020-06-07 23:19:27 +09:00
parent 3f727b0451
commit d3320d41f0
3 changed files with 11 additions and 0 deletions

View File

@ -0,0 +1 @@
10001

View File

@ -0,0 +1 @@
<%= 1 + /* 10 + %> /* 100 + */ 1000 %> + */ 10000 %>

View File

@ -164,6 +164,15 @@ fn test_rm_whitespace() {
);
}
#[derive(TemplateOnce)]
#[template(path = "comment.stpl")]
struct Comment {}
#[test]
fn test_comment() {
assert_render("comment", Comment{})
}
#[cfg(unix)]
mod unix {
use super::*;