1 % \iffalse meta-comment
3 % Copyright (C) 1994 by David Carlisle.
6 % This file is part of the validate package.
10 % You are not allowed to change this file. In case of error
11 % write to the email address mentioned in the file readme.val.
15 % Test file for LaTeX2e bug report #203.
16 % \@tfor losing outer most braces:
17 % treating {abc} as {a}{b}{c}
18 % and {} as a nil list.
24 \AUTHOR{David Carlisle}
25 \FORMAT{LaTeX2e<1994/04/29>}
29 % each test loops through the given list. the final \typeout checks no
30 % extra space has been produced anywhere.
34 \setbox0=\hbox{\@tfor\x:=#1\do{\typeout{(\x)}}}%
35 \typeout{Total width=\the\wd0}}
38 \test{abc} % This should loop three times
39 \test{a b c} % This should loop three times
40 \test{{a}{b}{c}} % This should loop three times
42 \test{{abc}} % This should loop once with value abc
43 \test{ {abc}} % This should loop once with value abc
45 \test{} % This should not loop at all.
46 \test{ } % This should not loop at all.
48 \test{{}} % This should loop once with empty value.
49 \test{ {}} % This should loop once with empty value.