summaryrefslogtreecommitdiff
path: root/src/fontloader/misc/fontloader-preprocessor-test.tex
blob: 857b28f831bc532fb8446abd406c5bf847a832e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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