diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 00:01:49 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 00:01:49 +0200 |
commit | fc8f7eec23e8e95fc9a4a483bb69a1ee6866069d (patch) | |
tree | d7b9510e21e1c188894d821682327f5bfb9e225e /tests/test_loop | |
parent | 04ee002e30b5451d505ee5abd9c6b97c40da2df0 (diff) | |
download | ste-fc8f7eec23e8e95fc9a4a483bb69a1ee6866069d.tar.gz ste-fc8f7eec23e8e95fc9a4a483bb69a1ee6866069d.tar.bz2 ste-fc8f7eec23e8e95fc9a4a483bb69a1ee6866069d.zip |
Added some tests
Diffstat (limited to 'tests/test_loop')
-rw-r--r-- | tests/test_loop/.gitignore | 3 | ||||
-rw-r--r-- | tests/test_loop/code.php | 5 | ||||
-rw-r--r-- | tests/test_loop/test.tpl | 3 | ||||
-rw-r--r-- | tests/test_loop/want | 11 |
4 files changed, 22 insertions, 0 deletions
diff --git a/tests/test_loop/.gitignore b/tests/test_loop/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_loop/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_loop/code.php b/tests/test_loop/code.php new file mode 100644 index 0000000..de8c553 --- /dev/null +++ b/tests/test_loop/code.php @@ -0,0 +1,5 @@ +<?php + +function test_func($ste) { + +} diff --git a/tests/test_loop/test.tpl b/tests/test_loop/test.tpl new file mode 100644 index 0000000..399f05a --- /dev/null +++ b/tests/test_loop/test.tpl @@ -0,0 +1,3 @@ +<ste:for start="10" stop="0" step="-1" counter="i"> +$i +</ste:for>
\ No newline at end of file diff --git a/tests/test_loop/want b/tests/test_loop/want new file mode 100644 index 0000000..30b148d --- /dev/null +++ b/tests/test_loop/want @@ -0,0 +1,11 @@ +10 +9 +8 +7 +6 +5 +4 +3 +2 +1 +0 |