| 815 | } |
| 816 | |
| 817 | static void test_comments(testing & t) { |
| 818 | test_template(t, "inline comment", |
| 819 | "before{# comment #}after", |
| 820 | json::object(), |
| 821 | "beforeafter" |
| 822 | ); |
| 823 | |
| 824 | test_template(t, "comment ignores code", |
| 825 | "{% set x = 1 %}{# {% set x = 999 %} #}{{ x }}", |
| 826 | json::object(), |
| 827 | "1" |
| 828 | ); |
| 829 | } |
| 830 | |
| 831 | static void test_macros(testing & t) { |
| 832 | test_template(t, "simple macro", |
nothing calls this directly
no test coverage detected