summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/oberdiek/test
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test')
-rw-r--r--Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex5
-rw-r--r--Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex20
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
%%