[latex3-commits] [git/latex2e] master: additional \@ifundefined tests (3aa7756)

Bruno Le Floch blflatex at gmail.com
Sun Jan 7 03:14:34 CET 2018


Good point about testing definitions are \long.  By the way, should
\@ifundefined be made \long?  (I guess that applies to numerous
programming commands in LaTeX2e so the answer is probably no.)

On 01/06/2018 08:06 PM, David Carlisle wrote:
> Repository : https://github.com/latex3/latex2e
> On branch  : master
> Link       : https://github.com/latex3/latex2e/commit/3aa7756661c5c954564f2a01af3c211468ed6462
> 
>> ---------------------------------------------------------------
> 
> commit 3aa7756661c5c954564f2a01af3c211468ed6462
> Author: David Carlisle <d.p.carlisle at gmail.com>
> Date:   Sun Jan 7 01:06:40 2018 +0000
> 
>     additional \@ifundefined tests
> 
> 
>> ---------------------------------------------------------------
> 
> 3aa7756661c5c954564f2a01af3c211468ed6462
>  base/testfiles/tlb-ifundefined-2017.lvt |   11 +++++++----
>  base/testfiles/tlb-ifundefined-2017.tlg |    9 ++++++---
>  base/testfiles/tlb-ifundefined.lvt      |   11 +++++++----
>  base/testfiles/tlb-ifundefined.tlg      |    9 ++++++---
>  4 files changed, 26 insertions(+), 14 deletions(-)
> 
> diff --git a/base/testfiles/tlb-ifundefined-2017.lvt b/base/testfiles/tlb-ifundefined-2017.lvt
> index c49606a..dd1688a 100644
> --- a/base/testfiles/tlb-ifundefined-2017.lvt
> +++ b/base/testfiles/tlb-ifundefined-2017.lvt
> @@ -9,9 +9,12 @@
>  \START
>  
>  \wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
> -\wlog{test 2 \@ifundefined{\string\if}{Y}{N}}
> -\wlog{test 3 \@ifundefined{hbox}{Y}{N}}
> -\wlog{test 4 \@ifundefined{wibble}{Y}{N}}
> -\wlog{test 5 \meaning\wibble}
> +\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}
>  
>  \END
> \ No newline at end of file
> diff --git a/base/testfiles/tlb-ifundefined-2017.tlg b/base/testfiles/tlb-ifundefined-2017.tlg
> index dfe9307..4e9b498 100644
> --- a/base/testfiles/tlb-ifundefined-2017.tlg
> +++ b/base/testfiles/tlb-ifundefined-2017.tlg
> @@ -2,6 +2,9 @@ This is a generated file for the LaTeX2e validation system.
>  Don't change this file in any respect.
>  test 1 N
>  test 2 Y
> -test 3 N
> -test 4 Y
> -test 5 \relax
> +test 3 Y
> +test 4 N
> +test 5 Y
> +test 6 Y\par 
> +test 7 N\par 
> +test 8 \relax
> diff --git a/base/testfiles/tlb-ifundefined.lvt b/base/testfiles/tlb-ifundefined.lvt
> index ec19265..f48d829 100644
> --- a/base/testfiles/tlb-ifundefined.lvt
> +++ b/base/testfiles/tlb-ifundefined.lvt
> @@ -9,9 +9,12 @@
>  \START
>  
>  \wlog{test 1 \@ifundefined{\expandafter\@gobble\string\if}{Y}{N}}
> -\wlog{test 2 \@ifundefined{\string\if}{Y}{N}}
> -\wlog{test 3 \@ifundefined{hbox}{Y}{N}}
> -\wlog{test 4 \@ifundefined{wibble}{Y}{N}}
> -\wlog{test 5 \meaning\wibble}
> +\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}
>  
>  \END
> \ No newline at end of file
> diff --git a/base/testfiles/tlb-ifundefined.tlg b/base/testfiles/tlb-ifundefined.tlg
> index 2c5412b..3414fd1 100644
> --- a/base/testfiles/tlb-ifundefined.tlg
> +++ b/base/testfiles/tlb-ifundefined.tlg
> @@ -2,6 +2,9 @@ This is a generated file for the LaTeX2e validation system.
>  Don't change this file in any respect.
>  test 1 N
>  test 2 Y
> -test 3 N
> -test 4 Y
> -test 5 undefined
> +test 3 Y
> +test 4 N
> +test 5 Y
> +test 6 Y\par 
> +test 7 N\par 
> +test 8 undefined
> 
> 
> 



More information about the latex3-commits mailing list