[latex3-commits] [git/LaTeX3-latex3-latex2e] TL21-2-kernel-msgs: Make test for \MakeRobust; update test files (e97204b7)
Frank Mittelbach
frank.mittelbach at latex-project.org
Wed Jun 9 11:23:24 CEST 2021
Repository : https://github.com/latex3/latex2e
On branch : TL21-2-kernel-msgs
Link : https://github.com/latex3/latex2e/commit/e97204b777c14d1c2e3d0a542c9145adce50ecab
>---------------------------------------------------------------
commit e97204b777c14d1c2e3d0a542c9145adce50ecab
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date: Wed Jun 9 11:23:24 2021 +0200
Make test for \MakeRobust; update test files
>---------------------------------------------------------------
e97204b777c14d1c2e3d0a542c9145adce50ecab
base/testfiles-ltcmd/ltcmd007.lvt | 9 +++++++++
base/testfiles-ltcmd/ltcmd007.tlg | 20 ++++++++++++++++++++
base/testfiles/github-robust-0123.luatex.tlg | 2 +-
base/testfiles/github-robust-0123.tlg | 2 +-
base/testfiles/github-robust-0123.xetex.tlg | 2 +-
5 files changed, 32 insertions(+), 3 deletions(-)
diff --git a/base/testfiles-ltcmd/ltcmd007.lvt b/base/testfiles-ltcmd/ltcmd007.lvt
index 8c7dee8d..8f19afa6 100644
--- a/base/testfiles-ltcmd/ltcmd007.lvt
+++ b/base/testfiles-ltcmd/ltcmd007.lvt
@@ -66,4 +66,13 @@
\NewExpandableDocumentCommand\dummy{ol}{}
}
+
+\TEST { make~ robust }
+ {
+ \MakeRobust\foo
+ \def\foo{bar}
+ \MakeRobust\foo
+ \ShowCommand\foo
+ \MakeRobust\foo
+ }
\END
diff --git a/base/testfiles-ltcmd/ltcmd007.tlg b/base/testfiles-ltcmd/ltcmd007.tlg
index c6f0d937..f0f45e84 100644
--- a/base/testfiles-ltcmd/ltcmd007.tlg
+++ b/base/testfiles-ltcmd/ltcmd007.tlg
@@ -91,3 +91,23 @@ The letter 'l' specifies an argument type which cannot be used in an
expandable command after an optional argument.
LaTeX will ignore this entire definition.
============================================================
+============================================================
+TEST 5: make robust
+============================================================
+! LaTeX Error: Command `\foo' undefined.
+ There is nothing here to make robust.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type H <return> for immediate help.
+ ...
+l. ... }
+Your command was ignored.
+Type I <command> <return> to replace it with another command,
+or <return> to continue without it.
+> \foo=robust macro:
+->\protect \foo .
+> \foo =macro:
+->bar.
+<argument> \foo
+l. ... }
+LaTeX Info: Command `\foo' is already robust on input line ....
+============================================================
diff --git a/base/testfiles/github-robust-0123.luatex.tlg b/base/testfiles/github-robust-0123.luatex.tlg
index 5341fce9..810206b2 100644
--- a/base/testfiles/github-robust-0123.luatex.tlg
+++ b/base/testfiles/github-robust-0123.luatex.tlg
@@ -112,7 +112,7 @@ l. ...\mruntest{ccc}
---------------------------------------
\LoadClass -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
-\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined!\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
+\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined.\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
---------------------------------------
\OptionNotUsed -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
diff --git a/base/testfiles/github-robust-0123.tlg b/base/testfiles/github-robust-0123.tlg
index e5037806..f91361bc 100644
--- a/base/testfiles/github-robust-0123.tlg
+++ b/base/testfiles/github-robust-0123.tlg
@@ -112,7 +112,7 @@ l. ...\mruntest{ccc}
---------------------------------------
\LoadClass -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
-\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined!\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
+\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined.\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
---------------------------------------
\OptionNotUsed -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
diff --git a/base/testfiles/github-robust-0123.xetex.tlg b/base/testfiles/github-robust-0123.xetex.tlg
index ce290eb2..dc3bf5dd 100644
--- a/base/testfiles/github-robust-0123.xetex.tlg
+++ b/base/testfiles/github-robust-0123.xetex.tlg
@@ -112,7 +112,7 @@ l. ...\mruntest{ccc}
---------------------------------------
\LoadClass -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
-\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined!\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
+\MakeRobust{foo}{bar}{baz} -> \count@ =\escapechar \escapechar =`\\ \GenericError { }{LaTeX Error: Command `foo' undefined.\MessageBreak There is nothing here to make robust}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}\escapechar =\count@ {bar}{baz}
---------------------------------------
\OptionNotUsed -> \GenericError { }{LaTeX Error: Can be used only in preamble}{See the LaTeX manual or LaTeX Companion for explanation.}{Your command was ignored.\MessageBreak Type I <command> <return> to replace it with another command,\MessageBreak or <return> to continue without it.}
---------------------------------------
More information about the latex3-commits
mailing list.