[latex3-commits] [git/latex2e] master: additional @ifundefined tests (luatex failure) (e03a4d6)
David Carlisle
d.p.carlisle at gmail.com
Sun Jan 7 15:57:25 CET 2018
Repository : https://github.com/latex3/latex2e
On branch : master
Link : https://github.com/latex3/latex2e/commit/e03a4d682bd9e67241bf717c9d8f27bc5b24d0f2
>---------------------------------------------------------------
commit e03a4d682bd9e67241bf717c9d8f27bc5b24d0f2
Author: David Carlisle <d.p.carlisle at gmail.com>
Date: Sun Jan 7 14:57:25 2018 +0000
additional @ifundefined tests (luatex failure)
>---------------------------------------------------------------
e03a4d682bd9e67241bf717c9d8f27bc5b24d0f2
base/testfiles/tlb-ifundefined-2017.lvt | 27 +++++++++++++++++----------
base/testfiles/tlb-ifundefined-2017.tlg | 10 +++++++---
base/testfiles/tlb-ifundefined.lvt | 27 +++++++++++++++++----------
base/testfiles/tlb-ifundefined.tlg | 10 +++++++---
4 files changed, 48 insertions(+), 26 deletions(-)
diff --git a/base/testfiles/tlb-ifundefined-2017.lvt b/base/testfiles/tlb-ifundefined-2017.lvt
index dd1688a..cd8fd16 100644
--- a/base/testfiles/tlb-ifundefined-2017.lvt
+++ b/base/testfiles/tlb-ifundefined-2017.lvt
@@ -2,19 +2,26 @@
\input{test2e}
% testing \@ifthenelse with defined and undefinined commands
-% including unmatched \if
-% finally test whether undefined command gets set to \relax
+% including unmatched \if, empty csname and \par in arguments.
+
+% Also test whether undefined command gets set to \relax
% or (from 2018 on) left undefined
\START
-\wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
-\wlog{test 2 \@ifundefined{\expandafter\string\csname def\endcsname}{Y}{N}}
-\wlog{test 3 \@ifundefined{\string\if}{Y}{N}}
-\wlog{test 4 \@ifundefined{hbox}{Y}{N}}
-\wlog{test 5 \@ifundefined{wibble}{Y}{N}}
-\wlog{test 6 \@ifundefined{wibble-2}{Y\par}{N\par}}
-\wlog{test 7 \@ifundefined{vbox}{Y\par}{N\par}}
-\wlog{test 8 \meaning\wibble}
+\wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
+\wlog{test 2 \@ifundefined{\expandafter\string\csname def\endcsname}{Y}{N}}
+\wlog{test 3 \@ifundefined{\string\if}{Y}{N}}
+\wlog{test 4 \@ifundefined{hbox}{Y}{N}}
+\wlog{test 5 \@ifundefined{wibble}{Y}{N}}
+\wlog{test 6 \meaning\wibble}
+\wlog{test 7 \@ifundefined{wibble-2}{Y\par}{N\par}}
+\wlog{test 8 \@ifundefined{vbox}{Y\par}{N\par}}
+\wlog{test 9 \@ifundefined{}{Y}{N}}
+\expandafter\let\csname\endcsname X
+\wlog{test 10 \@ifundefined{}{Y}{N}}
+\expandafter\let\csname\endcsname \relax
+\wlog{test 11 \@ifundefined{}{Y}{N}}
+\wlog{test 12 \@ifundefined{relax}{Y}{N}}
\END
diff --git a/base/testfiles/tlb-ifundefined-2017.tlg b/base/testfiles/tlb-ifundefined-2017.tlg
index 4e9b498..4d00481 100644
--- a/base/testfiles/tlb-ifundefined-2017.tlg
+++ b/base/testfiles/tlb-ifundefined-2017.tlg
@@ -5,6 +5,10 @@ test 2 Y
test 3 Y
test 4 N
test 5 Y
-test 6 Y\par
-test 7 N\par
-test 8 \relax
+test 6 \relax
+test 7 Y\par
+test 8 N\par
+test 9 Y
+test 10 N
+test 11 Y
+test 12 Y
diff --git a/base/testfiles/tlb-ifundefined.lvt b/base/testfiles/tlb-ifundefined.lvt
index f48d829..d7ec60e 100644
--- a/base/testfiles/tlb-ifundefined.lvt
+++ b/base/testfiles/tlb-ifundefined.lvt
@@ -2,19 +2,26 @@
\input{test2e}
% testing \@ifthenelse with defined and undefinined commands
-% including unmatched \if
-% finally test whether undefined command gets set to \relax
+% including unmatched \if, empty csname and \par in arguments.
+
+% Also test whether undefined command gets set to \relax
% or (from 2018 on) left undefined
\START
-\wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
-\wlog{test 2 \@ifundefined{\expandafter\string\csname def\endcsname}{Y}{N}}
-\wlog{test 3 \@ifundefined{\string\if}{Y}{N}}
-\wlog{test 4 \@ifundefined{hbox}{Y}{N}}
-\wlog{test 5 \@ifundefined{wibble}{Y}{N}}
-\wlog{test 6 \@ifundefined{wibble-2}{Y\par}{N\par}}
-\wlog{test 7 \@ifundefined{vbox}{Y\par}{N\par}}
-\wlog{test 8 \meaning\wibble}
+\wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
+\wlog{test 2 \@ifundefined{\expandafter\string\csname def\endcsname}{Y}{N}}
+\wlog{test 3 \@ifundefined{\string\if}{Y}{N}}
+\wlog{test 4 \@ifundefined{hbox}{Y}{N}}
+\wlog{test 5 \@ifundefined{wibble}{Y}{N}}
+\wlog{test 6 \meaning\wibble}
+\wlog{test 7 \@ifundefined{wibble-2}{Y\par}{N\par}}
+\wlog{test 8 \@ifundefined{vbox}{Y\par}{N\par}}
+\wlog{test 9 \@ifundefined{}{Y}{N}}
+\expandafter\let\csname\endcsname X
+\wlog{test 10 \@ifundefined{}{Y}{N}}
+\expandafter\let\csname\endcsname \relax
+\wlog{test 11 \@ifundefined{}{Y}{N}}
+\wlog{test 12 \@ifundefined{relax}{Y}{N}}
\END
diff --git a/base/testfiles/tlb-ifundefined.tlg b/base/testfiles/tlb-ifundefined.tlg
index 3414fd1..123b37d 100644
--- a/base/testfiles/tlb-ifundefined.tlg
+++ b/base/testfiles/tlb-ifundefined.tlg
@@ -5,6 +5,10 @@ test 2 Y
test 3 Y
test 4 N
test 5 Y
-test 6 Y\par
-test 7 N\par
-test 8 undefined
+test 6 undefined
+test 7 Y\par
+test 8 N\par
+test 9 Y
+test 10 N
+test 11 Y
+test 12 Y
More information about the latex3-commits
mailing list