{% macro generate(test_number) %} {% if test_number < 10 %} {% set test_id = "0" ~ test_number %} {% else %} {% set test_id = test_number %} {% endif %} {% set test_section_path = "test" ~ test_id ~ "/_index.md" %} {% set test_section = get_section(path=test_section_path) %} {{ test_number }} {{ test_section.title }} {{ test_section.extra.input | markdown | safe }} {{ test_section.extra.expected | markdown | safe }} {%- if test_section.extra.result_ok -%}👍 [OK]{%- else -%}👎 [KO]{%- endif -%} {{ test_section.path }} {% endmacro %}