diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex index e98085bde88..e8db449e320 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex @@ -32,7 +32,7 @@ \nofiles \documentclass{minimal} -\usepackage{letltxmacro}[2008/06/13] +\usepackage{letltxmacro}[2008/06/24] \usepackage{qstest} \IncludeTests{*} @@ -129,11 +129,12 @@ \TestDef{TestB}{\iffalse }% \TestEquals{TestA}{TestB}% \end{qstest} -\usepackage{etoolbox}[2008/06/12] +\usepackage{etoolbox}[2008/06/22] -\begin{qstest}{newrobustcmd}{oldnewrobustcmd} +\begin{qstest}{oldnewrobustcmd}{oldnewrobustcmd} \protected\edef\TestA{% - \noexpand\@testopt + \noexpand\@protected@testopt + \noexpand\TestA \expandafter\noexpand\csname\string\TestA\endcsname {\noexpand\default}% }% @@ -141,9 +142,10 @@ \def\csname\string\TestA\endcsname{TestA}% \SaveA \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\@testopt \\TestB {\default }}% + \TestDef{TestB}{\@protected@testopt \TestB \\TestB {\default }}% \protected\edef\TestC{% - \noexpand\@testopt + \noexpand\@protected@testopt + \noexpand\TestB \expandafter\noexpand\csname\string\TestB\endcsname {\noexpand\default}% }% @@ -155,10 +157,9 @@ \newrobustcmd{\TestA}[1][\default]{TestA}% \SaveA \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\@protected@testopt \TestB \\TestB {\default }}% + \TestDef{TestB}{\@testopt \\TestB {\default }}% \protected\edef\TestC{% - \noexpand\@protected@testopt - \noexpand\TestB + \noexpand\@testopt \expandafter\noexpand\csname\string\TestB\endcsname {\noexpand\default}% }% @@ -197,7 +198,22 @@ \SaveA \LetLtxMacro\TestB\TestA \TestDef{TestB}{\iffalse }% - \protected\long\def\TestC{\iffalse}% + % before etoolbox 2008/06/22: \protected\long\def + % since etoolbox 2008/06/22: \protected\def + \protected\def\TestC{\iffalse}% + \TestEquals{TestB}{TestC}% + \CheckA +\end{qstest} + +\begin{qstest}{robustifydeclarelong}{robustifydeclarelong} + \DeclareRobustCommand\TestA[1]{\iffalse}% + \robustify\TestA + \SaveA + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\iffalse }% + % before etoolbox 2008/06/22: \protected\long\def + % since etoolbox 2008/06/22: \protected\def + \protected\long\def\TestC#1{\iffalse}% \TestEquals{TestB}{TestC}% \CheckA \end{qstest} |