summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-09-24 00:10:23 +0000
committerKarl Berry <karl@freefriends.org>2009-09-24 00:10:23 +0000
commit49446840dadda778fc810d2019c83229810fbe08 (patch)
treea3f92372a718524547b4c28588ae23a0461f5e20 /Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex
parent3f39a4fbdf08fa724e5047b82e3437ddf9b83bf4 (diff)
oberdiek update (23sep09)
git-svn-id: svn://tug.org/texlive/trunk@15438 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex')
-rw-r--r--Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex78
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex
new file mode 100644
index 00000000000..29dce7d9728
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex
@@ -0,0 +1,78 @@
+%%
+%% This is file `pdftexcmds-test2.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% pdftexcmds.dtx (with options: `test2')
+%%
+%% This is a generated file.
+%%
+%% Copyright (C) 2007 by Heiko Oberdiek <oberdiek@uni-freiburg.de>
+%%
+%% This work may be distributed and/or modified under the
+%% conditions of the LaTeX Project Public License, either
+%% version 1.3 of this license or (at your option) any later
+%% version. The latest version of this license is in
+%% http://www.latex-project.org/lppl.txt
+%% and version 1.3 or later is part of all distributions of
+%% LaTeX version 2005/12/01 or later.
+%%
+%% This work has the LPPL maintenance status "maintained".
+%%
+%% This Current Maintainer of this work is Heiko Oberdiek.
+%%
+%% This work consists of the main source file pdftexcmds.dtx
+%% and the derived files
+%% pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv,
+%% pdftexcmds-test1.tex, pdftexcmds-test2.tex,
+%% oberdiek.pdftexcmds.lua, pdftexcmds.lua.
+%%
+\catcode`\{=1 %
+\catcode`\}=2 %
+\catcode`\#=6 %
+\catcode`\@=11 %
+\input pdftexcmds.sty\relax
+\def\msg#1{%
+ \begingroup
+ \escapechar=92 %
+ \immediate\write16{#1}%
+ \endgroup
+}
+\long\def\test#1#2#3#4{%
+ \begingroup
+ #4%
+ \def\str{%
+ Test \string\pdf@isprimitive
+ {\string #1}{\string #2}{...}: %
+ }%
+ \pdf@isprimitive{#1}{#2}{%
+ \ifx#3Y%
+ \msg{\str true ==> OK.}%
+ \else
+ \errmessage{\str false ==> FAILED}%
+ \fi
+ }{%
+ \ifx#3Y%
+ \errmessage{\str true ==> FAILED}%
+ \else
+ \msg{\str false ==> OK.}%
+ \fi
+ }%
+ \endgroup
+}
+\test\relax\relax Y{}
+\test\foobar\relax Y{\let\foobar\relax}
+\test\foobar\relax N{}
+\test\hbox\hbox Y{}
+\test\foobar@hbox\hbox Y{\let\foobar@hbox\hbox}
+\test\if\if Y{}
+\test\if\ifx N{}
+\test\ifx\if N{}
+\test\par\par Y{}
+\test\hbox\par N{}
+\test\par\hbox N{}
+\csname @@end\endcsname\end
+\endinput
+%%
+%% End of file `pdftexcmds-test2.tex'.