diff options
Diffstat (limited to 'src/templating/test2')
-rw-r--r-- | src/templating/test2/.gitignore | 2 | ||||
-rw-r--r-- | src/templating/test2/Makefile | 8 | ||||
-rw-r--r-- | src/templating/test2/json | 9 | ||||
-rw-r--r-- | src/templating/test2/must | 17 | ||||
-rw-r--r-- | src/templating/test2/resu.ref | 7 | ||||
-rw-r--r-- | src/templating/test2/vg.ref | 14 |
6 files changed, 57 insertions, 0 deletions
diff --git a/src/templating/test2/.gitignore b/src/templating/test2/.gitignore new file mode 100644 index 000000000..4d897daa0 --- /dev/null +++ b/src/templating/test2/.gitignore @@ -0,0 +1,2 @@ +resu.last +vg.last diff --git a/src/templating/test2/Makefile b/src/templating/test2/Makefile new file mode 100644 index 000000000..1a3e57914 --- /dev/null +++ b/src/templating/test2/Makefile @@ -0,0 +1,8 @@ +.PHONY: test clean + +test: + @../dotest.sh json must + +clean: + rm -f resu.last vg.last + diff --git a/src/templating/test2/json b/src/templating/test2/json new file mode 100644 index 000000000..8c668b3b1 --- /dev/null +++ b/src/templating/test2/json @@ -0,0 +1,9 @@ +{ + "header": "Colors", + "items": [ + {"name": "red", "first": true, "url": "#Red"}, + {"name": "green", "link": true, "url": "#Green"}, + {"name": "blue", "link": true, "url": "#Blue"} + ], + "empty": false +} diff --git a/src/templating/test2/must b/src/templating/test2/must new file mode 100644 index 000000000..aa6da7077 --- /dev/null +++ b/src/templating/test2/must @@ -0,0 +1,17 @@ +<h1>{{header}}</h1> +{{#bug}} +{{/bug}} + +{{#items}} + {{#first}} + <li><strong>{{name}}</strong></li> + {{/first}} + {{#link}} + <li><a href="{{url}}">{{name}}</a></li> + {{/link}} +{{/items}} + +{{#empty}} + <p>The list is empty.</p> +{{/empty}} + diff --git a/src/templating/test2/resu.ref b/src/templating/test2/resu.ref new file mode 100644 index 000000000..5a200a9bf --- /dev/null +++ b/src/templating/test2/resu.ref @@ -0,0 +1,7 @@ +<h1>Colors</h1> + + <li><strong>red</strong></li> + <li><a href="#Green">green</a></li> + <li><a href="#Blue">blue</a></li> + + diff --git a/src/templating/test2/vg.ref b/src/templating/test2/vg.ref new file mode 100644 index 000000000..e4b4f6d37 --- /dev/null +++ b/src/templating/test2/vg.ref @@ -0,0 +1,14 @@ +Memcheck, a memory error detector +Copyright (C) 2002-2022, and GNU GPL'd, by Julian Seward et al. +Using Valgrind-3.19.0 and LibVEX; rerun with -h for copyright info +Command: ../mustach json must + + +HEAP SUMMARY: + in use at exit: 0 bytes in 0 blocks + total heap usage: 38 allocs, 38 frees, 5,712 bytes allocated + +All heap blocks were freed -- no leaks are possible + +For lists of detected and suppressed errors, rerun with: -s +ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0) |