[latex3-commits] [git/LaTeX3-latex3-latex2e] develop: Add test for unknown variants (a318beaf)
Joseph Wright
joseph.wright at morningstar2.co.uk
Thu Jan 6 15:07:26 CET 2022
Repository : https://github.com/latex3/latex2e
On branch : develop
Link : https://github.com/latex3/latex2e/commit/a318beafb3249e3ae3cb6a8f138ae6e6de322901
>---------------------------------------------------------------
commit a318beafb3249e3ae3cb6a8f138ae6e6de322901
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Thu Jan 6 14:07:26 2022 +0000
Add test for unknown variants
>---------------------------------------------------------------
a318beafb3249e3ae3cb6a8f138ae6e6de322901
base/testfiles/github-0735.lvt | 4 ++++
base/testfiles/github-0735.tlg | 43 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 47 insertions(+)
diff --git a/base/testfiles/github-0735.lvt b/base/testfiles/github-0735.lvt
index 56195177..9b04b0f1 100644
--- a/base/testfiles/github-0735.lvt
+++ b/base/testfiles/github-0735.lvt
@@ -24,5 +24,9 @@
\ShowCommand\baz
}
+\TEST { Unknown variant }
+ {
+ \ExpandArgs{XX} \NewCommandCopy {baz} {foo}
+ }
\END
diff --git a/base/testfiles/github-0735.tlg b/base/testfiles/github-0735.tlg
index 4cbf3735..a68e572c 100644
--- a/base/testfiles/github-0735.tlg
+++ b/base/testfiles/github-0735.tlg
@@ -39,3 +39,46 @@ l. ... }
<recently read> }
l. ... }
============================================================
+============================================================
+TEST 3: Unknown variant
+============================================================
+! Use of \??? doesn't match its definition.
+<argument> \???
+ ! LaTeX3 Error: Unknown arg expansion "XX"
+l. ... }
+If you say, e.g., `\def\a1{...}', then you must always
+put `1' after `\a', since control sequence names are
+made up of letters only. The macro here has not been
+followed by the required stuff, so I'm ignoring it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type H <return> for immediate help.
+ ...
+l. ... }
+You're in trouble here. Try typing <return> to proceed.
+If that doesn't work, type X <return> to quit.
+Missing character: There is no o in font nullfont!
+Missing character: There is no o in font nullfont!
+! Missing control sequence inserted.
+<inserted text>
+ \inaccessible
+l. ... }
+Please don't say `\def cs{...}', say `\def\cs{...}'.
+I've inserted an inaccessible control sequence so that your
+definition will be completed without mixing me up too badly.
+You can recover graciously from this error, if you're
+careful; see exercise 27.2 in The TeXbook.
+Missing character: There is no a in font nullfont!
+Missing character: There is no z in font nullfont!
+Missing character: There is no f in font nullfont!
+Missing character: There is no o in font nullfont!
+Missing character: There is no o in font nullfont!
+Missing character: There is no = in font nullfont!
+============================================================
+Overfull \hbox (20.0pt too wide) in paragraph at lines 30--31
+[]
+\hbox(0.0+0.0)x0.0
+.\hbox(0.0+0.0)x20.0
+.\penalty 10000
+.\glue(\parfillskip) 0.0 plus 1.0fil
+.\glue(\rightskip) 0.0
More information about the latex3-commits
mailing list.