diff options
author | Hans Hagen <pragma@wxs.nl> | 2010-12-02 12:05:00 +0100 |
---|---|---|
committer | Hans Hagen <pragma@wxs.nl> | 2010-12-02 12:05:00 +0100 |
commit | f0515ed4b1a731629538988c70d8309f44391bf2 (patch) | |
tree | 807746fe9712e126dd7fc32f8c1864b420399a63 /tex/generic/context/luatex-preprocessor-test.tex | |
parent | 85d005e999920a82d104e89012385adb864d7a10 (diff) | |
download | context-f0515ed4b1a731629538988c70d8309f44391bf2.tar.gz |
beta 2010.12.02 12:05
Diffstat (limited to 'tex/generic/context/luatex-preprocessor-test.tex')
-rw-r--r-- | tex/generic/context/luatex-preprocessor-test.tex | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/tex/generic/context/luatex-preprocessor-test.tex b/tex/generic/context/luatex-preprocessor-test.tex new file mode 100644 index 000000000..857b28f83 --- /dev/null +++ b/tex/generic/context/luatex-preprocessor-test.tex @@ -0,0 +1,30 @@ +\ifdefined\inputpreprocessed + + \def\TestOne[#1]% + {test one: [#1]\par} + + \def\TestTwo#some% + {test two: #some\par} + + \def\TestThree[#whatever][#more]% + {test three: [#more] and [#whatever]\par} + + \def\TestFour[#one]#two% + {\def\TestFive[#alpha][#one]% + {test four and five: [#one], [#two] and [#alpha]}\par} + + \def\TestSix[#{one}]#{two}% + {test six: [#{one}] and #{two}\par} + + \TestOne [one] + \TestTwo {one} + \TestThree[one][two] + \TestFour [one]{two} + \TestFive [one][two] + \TestSix [one]{two} + +\else + \input{luatex-preprocessor.tex} + \inputpreprocessed{luatex-preprocessor-test.tex} + \expandafter \end +\fi |