| 843 | } |
| 844 | |
| 845 | static void test_namespace(testing & t) { |
| 846 | test_template(t, "namespace counter", |
| 847 | "{% set ns = namespace(count=0) %}{% for i in range(3) %}{% set ns.count = ns.count + 1 %}{% endfor %}{{ ns.count }}", |
| 848 | json::object(), |
| 849 | "3" |
| 850 | ); |
| 851 | } |
| 852 | |
| 853 | static void test_tests(testing & t) { |
| 854 | test_template(t, "is odd", |
nothing calls this directly
no test coverage detected