diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 15:22:12 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-10-23 15:22:12 +0200 |
commit | 7ae08e3c35760fd7c5cb00d9a8a27488090f952d (patch) | |
tree | 0abc5b34d9de9d3257c39cd47bad2ee209e2d066 /tests/test_short | |
parent | afaef24d4c358ebbbae551bcbd307da37a9d3fa7 (diff) | |
download | ste-7ae08e3c35760fd7c5cb00d9a8a27488090f952d.tar.gz ste-7ae08e3c35760fd7c5cb00d9a8a27488090f952d.tar.bz2 ste-7ae08e3c35760fd7c5cb00d9a8a27488090f952d.zip |
Added some tests.
Many of these break. Mostly because the way whitespace/newlines are added
(or not added). This is terribly broken ATM...
(It was okay with the old parser, I'll try to replicate that behaviour)
Diffstat (limited to 'tests/test_short')
-rw-r--r-- | tests/test_short/.gitignore | 3 | ||||
-rw-r--r-- | tests/test_short/code.php | 5 | ||||
-rw-r--r-- | tests/test_short/comment | 1 | ||||
-rw-r--r-- | tests/test_short/test.tpl | 1 | ||||
-rw-r--r-- | tests/test_short/want | 1 |
5 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_short/.gitignore b/tests/test_short/.gitignore new file mode 100644 index 0000000..de2a41b --- /dev/null +++ b/tests/test_short/.gitignore @@ -0,0 +1,3 @@ +have +*.ast +*.transc.php diff --git a/tests/test_short/code.php b/tests/test_short/code.php new file mode 100644 index 0000000..de8c553 --- /dev/null +++ b/tests/test_short/code.php @@ -0,0 +1,5 @@ +<?php + +function test_func($ste) { + +} diff --git a/tests/test_short/comment b/tests/test_short/comment new file mode 100644 index 0000000..12d7494 --- /dev/null +++ b/tests/test_short/comment @@ -0,0 +1 @@ +This currently does not work, since the compiler does not allow tags in tag parameters. diff --git a/tests/test_short/test.tpl b/tests/test_short/test.tpl new file mode 100644 index 0000000..42d498b --- /dev/null +++ b/tests/test_short/test.tpl @@ -0,0 +1 @@ +?{~{foo|eq|bar}|FAIL|?{~{~{1|gt|2}|?{y|eq|neq}|~{3|lt|2}}|OK|FAIL}}
\ No newline at end of file diff --git a/tests/test_short/want b/tests/test_short/want new file mode 100644 index 0000000..a0aba93 --- /dev/null +++ b/tests/test_short/want @@ -0,0 +1 @@ +OK
\ No newline at end of file |