%%
%% This is file `ltxcmds-test-gobble.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% ltxcmds.dtx  (with options: `test-gobble')
%% 
%% This is a generated file.
%% 
%% Copyright (C) 2009-2011 by
%%    Heiko Oberdiek <heiko.oberdiek at googlemail.com>
%% 
%% This work may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version. This version of this license is in
%%    http://www.latex-project.org/lppl/lppl-1-3c.txt
%% and the latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3 or later is part of all distributions of
%% LaTeX version 2005/12/01 or later.
%% 
%% This work has the LPPL maintenance status "maintained".
%% 
%% This Current Maintainer of this work is Heiko Oberdiek.
%% 
%% The Base Interpreter refers to any `TeX-Format',
%% because some files are installed in TDS:tex/generic//.
%% 
%% This work consists of the main source file ltxcmds.dtx
%% and the derived files
%%    ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv,
%%    ltxcmds-test1.tex, ltxcmds-test-gobble.tex,
%%    ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex,
%%    ltxcmds-test-ifboxempty.tex.
%% 
\catcode`\{=1 %
\catcode`\}=2 %
\catcode`\#=6 %
\expandafter\ifx\csname RequirePackage\endcsname\relax
  \input ltxcmds.sty\relax
\else
  \RequirePackage{ltxcmds}[2011/03/16]%
\fi
\catcode`\@=11 %
\def\msg#{\immediate\write16}%
\msg{[Test \string\ltx@GobbleNum]}%
\long\def\Test#1=#2\\{%
  \edef\StrA{\ltx@GobbleNum#1}%
  \expandafter\expandafter\expandafter\def
  \expandafter\expandafter\expandafter\StrAA
  \expandafter\expandafter\expandafter{\ltx@GobbleNum#1}%
  \edef\StrB{#2}%
  \ifx\StrA\StrB
    \ifx\StrAA\StrB
      \msg{* ok.}%
    \else
      \msg{StrAA: \StrAA}%
      \msg{StrB: \StrB}%
      \errhelp{Test: #1=#2}%
      \errmessage{Test (two expansions) failed}%
    \fi
  \else
    \msg{StrA: \StrA}%
    \msg{StrB: \StrB}%
    \errhelp{Test: #1=#2}%
    \errmessage{Test (edef) failed!}%
  \fi
}
\Test0abc=abc\\
\Test1abc=bc\\
\Test2abc=c\\
\Test3abcd=d\\
\Test4abcde=e\\
\Test5abcdef=f\\
\Test6abcdefg=g\\
\Test7abcdefgh=h\\
\Test8abcdefghi=i\\
\Test9abcdefghij=j\\
\Test{10}0123456789X=X\\
\Test{12}abcdefghijklm=m\\
\Test{700}%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
X=X\\
\Test{-1}abc=abc\\
\Test2\par\par\relax=\relax\\

\begingroup
  \count1=2 %
  \Test{\count1}abc=c\\%
\endgroup

\ltx@IfUndefined{numexpr}{%
}{%
  \Test{1+1}abc=c\\%
}

\msg{[Test \string\ltx@CdrNum]}%
\long\def\Test#1=#2\\{%
  \edef\StrA{\ltx@CdrNum#1\@nil}%
  \expandafter\expandafter\expandafter\def
  \expandafter\expandafter\expandafter\StrAA
  \expandafter\expandafter\expandafter{\ltx@CdrNum#1\@nil}%
  \edef\StrB{#2}%
  \ifx\StrA\StrB
    \ifx\StrAA\StrB
      \msg{* ok.}%
    \else
      \msg{StrAA: \meaning\StrAA}%
      \msg{StrB: \meaning\StrB}%
      \errhelp{Test: #1=#2}%
      \errmessage{Test (two expansions) failed}%
    \fi
  \else
    \msg{StrA: \StrA}%
    \msg{StrB: \StrB}%
    \errhelp{Test: #1=#2}%
    \errmessage{Test (edef) failed!}%
  \fi
}
\Test0abc=abc\\
\Test1abc=bc\\
\Test2abc=c\\
\Test3abcd=d\\
\Test4abcde=e\\
\Test5abcdef=f\\
\Test6abcdefg=g\\
\Test7abcdefgh=h\\
\Test8abcdefghi=i\\
\Test9abcdefghij=j\\
\Test{10}0123456789X=X\\
\Test{12}abcdefghijklm=m\\
\Test{700}%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
X=X\\
\Test{-1}abc=abc\\
\Test2\par\par\relax=\relax\\

\msg{[Test \string\ltx@CarNum]}%
\long\def\Test#1=#2\\{%
  \edef\StrA{\ltx@CarNum#1\@nil}%
  \expandafter\expandafter\expandafter\def
  \expandafter\expandafter\expandafter\StrAA
  \expandafter\expandafter\expandafter{\ltx@CarNum#1\@nil}%
  \edef\StrB{#2}%
  \ifx\StrA\StrB
    \ifx\StrAA\StrB
      \msg{* ok.}%
    \else
      \msg{StrAA: \meaning\StrAA}%
      \msg{StrB: \meaning\StrB}%
      \errhelp{Test: #1=#2}%
      \errmessage{Test (two expansions) failed}%
    \fi
  \else
    \msg{StrA: \StrA}%
    \msg{StrB: \StrB}%
    \errhelp{Test: #1=#2}%
    \errmessage{Test (edef) failed!}%
  \fi
}
\Test0abc=\\
\Test1abc=a\\
\Test2abc=ab\\
\Test3abc=abc\\
\Test3abcd=abc\\
\Test4abcde=abcd\\
\Test{10}0123456789X=0123456789\\
\Test{12}abcdefghijklm=abcdefghijkl\\
\Test{700}%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
X=%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
0123456789012345678901234567890123456789012345678901234567890123456789%
\\
\Test{-1}abc=\\
\Test2\par\par\relax=\par\par\\
\csname @@end\endcsname\end

\endinput
%%
%% End of file `ltxcmds-test-gobble.tex'.
