diff options
author | Karl Berry <karl@freefriends.org> | 2008-06-13 18:32:35 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-06-13 18:32:35 +0000 |
commit | cae42cea81a373da3e7a43470fa394581d3c9db9 (patch) | |
tree | bf624205e4ac1065f5b854c9151261d09cbd6f5d /Master/texmf-dist/doc/latex/oberdiek/test | |
parent | 95baa29ba9f6fec032f18e232d89175be47f869f (diff) |
oberdiek update (13jun08)
git-svn-id: svn://tug.org/texlive/trunk@8716 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex | 5 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex | 20 |
2 files changed, 21 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex index 00b6e63317d..3f9e112d562 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex @@ -25,7 +25,8 @@ %% This work consists of the main source file letltxmacro.dtx %% and the derived files %% letltxmacro.sty, letltxmacro.pdf, letltxmacro.ins, letltxmacro.drv, -%% letltxmacro-test1.tex, letltxmacro-test2.tex. +%% letltxmacro-showcases.tex, letltxmacro-test1.tex, +%% letltxmacro-test2.tex. %% \NeedsTeXFormat{LaTeX2e} \documentclass{minimal} @@ -64,7 +65,7 @@ \catcode`\%=14 % \catcode`\ =10 % \catcode13=5 % - \RequirePackage{letltxmacro}[2008/06/09]\relax + \RequirePackage{letltxmacro}[2008/06/12]\relax \RestoreCatcodes } \Test 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 435b40b9a70..b7e3f07570d 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex @@ -25,13 +25,14 @@ %% This work consists of the main source file letltxmacro.dtx %% and the derived files %% letltxmacro.sty, letltxmacro.pdf, letltxmacro.ins, letltxmacro.drv, -%% letltxmacro-test1.tex, letltxmacro-test2.tex. +%% letltxmacro-showcases.tex, letltxmacro-test1.tex, +%% letltxmacro-test2.tex. %% \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{minimal} -\usepackage{letltxmacro}[2008/06/09] +\usepackage{letltxmacro}[2008/06/12] \usepackage{qstest} \IncludeTests{*} @@ -124,6 +125,21 @@ \Expect*{\meaning\empty}{macro:->}% \Expect*{\meaning\NewEmpty}{macro:->}% \end{qstest} +\usepackage{etoolbox} + +\begin{qstest}{newrobustcmd}{newrobustcmd} + \newrobustcmd{\TestA}[1][\default]{TestA}% + \SaveA + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\@testopt \\TestB {\default }}% + \protected\edef\TestC{% + \noexpand\@testopt + \expandafter\noexpand\csname\string\TestB\endcsname + {\noexpand\default}% + }% + \TestEquals{TestB}{TestC}% + \CheckA +\end{qstest} \csname @@end\endcsname \endinput %% |