summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/pdftexdir/tests/expanded.txt
blob: d9b7c275c36b3f4e578b2bd2de18e76797f5756a (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
START
EXPANDED TEST 1
> \expanded=\expanded.
l.13 \show\expanded
                   

EXPANDED TEST 2
> \ccc=macro:
->xx,x.
l.20 \show\ccc
              

EXPANDED TEST 3: the
xx,123
EXPANDED TEST 4: macro param
> \ddd=macro:
#1->#1.
l.29 \show\ddd
              

EXPANDED TEST 5: torture
> ##,\aaa ,\aaa .
l.34 ...panded{#,\noexpand\aaa,\unexpanded{\aaa}}}
                                                  

> ##,##.
l.35 ...s\expandafter{\expanded{#,\unexpanded{#}}}
                                                  

> \aaa .
l.36 ...fter{\expanded\expandafter{\noexpand\aaa}}
                                                  

> x.
l.37 ...{\expanded\expandafter{\unexpanded{\aaa}}}
                                                  

> xx\aaa .
<inserted text> {xx\aaa }
                         
l.38 ...pand\aaa\noexpand\noexpand\noexpand\aaa}}}
                                                  

> \aaa .
<inserted text> {\aaa }
                       
l.40 \showtokens\expanded{{\the\toks0}}
                                       

> \egroup=end-group character }.
<inserted text> \show \egroup 
                              
l.41 \expanded\bgroup\show\egroup}
                                  

> \foo=macro:
->##.
l.43 \show\foo
              

END