mirror of
https://github.com/pantor/inja.git
synced 2026-04-03 22:58:51 +00:00
splitted tests, more unit tests
This commit is contained in:
4
test/data/nested/data.json
Normal file
4
test/data/nested/data.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"xarray": [0, 1],
|
||||
"yarray": [0, 1, 2]
|
||||
}
|
||||
12
test/data/nested/result.txt
Normal file
12
test/data/nested/result.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
0-0
|
||||
|
||||
0-1
|
||||
|
||||
0-2
|
||||
|
||||
1-0
|
||||
|
||||
1-1
|
||||
|
||||
1-2
|
||||
3
test/data/nested/template.txt
Normal file
3
test/data/nested/template.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
(% for x in xarray %)(% for y in yarray %)
|
||||
{{x}}-{{y}}
|
||||
(% endfor %)(% endfor %)
|
||||
Reference in New Issue
Block a user