summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/tests/partoken-xfail.tex
blob: 6d2208992e57defa7eb32cbd5c99fc1c1aa8a52f (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
31
% $Id$
% Public domain. Originally written by Petr Olsak, 2021.
% Testing \partokenname and \partokencontext primitives: an expected failure.
% 
% We want to test in iniTeX state, use "pdftex -ini partoken-test.tex" 
%
\catcode`\{=1 \catcode`\}=2 \catcode`\#=6
\hsize=4in \vsize=4in \baselineskip=12pt
\font\f=cmr10 \f
\nonstopmode

% Seting different partoken name
\catcode`\_=11
\let \_par = \par
\partokenname \_par
\def\par{hello}

% Not-\long macro does not accept \_par
% (emitted here from blank line):
\def\macro#1{}
% see partoken-ok.tex for successful test.
\macro{failing long test:

} % generates error: 
% ! Paragraph ended before \macro was complete.
% <to be read again> 
%                    \_par 
% l.20
% plus dependent error: Too many }'s.

\end