Skip to content

Commit

Permalink
Add unittest for the regression bug #839
Browse files Browse the repository at this point in the history
  • Loading branch information
trivigy committed Jan 4, 2020
1 parent 1181ed7 commit 8859986
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/macro/html-component-pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,18 @@ fn compile_pass() {
<Generic<Vec<String>>></ Generic<Vec<String>>>
</>
};

html! {
<div>
{
if true {
html! { <Container int=1 /> }
} else {
html! {}
}
}
</div>
};
}

fn main() {}

0 comments on commit 8859986

Please sign in to comment.