%PDF- %PDF-
| Direktori : /data/old/usr/share/texlive/texmf-dist/doc/latex/oberdiek/test/ |
| Current File : //data/old/usr/share/texlive/texmf-dist/doc/latex/oberdiek/test/thepdfnumber-test3.tex |
%%
%% This is file `thepdfnumber-test3.tex',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% thepdfnumber.dtx (with options: `test2,active')
%%
%% This is a generated file.
%%
%% Project: thepdfnumber
%% Version: 2011/11/24 v1.0
%%
%% Copyright (C) 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 thepdfnumber.dtx
%% and the derived files
%% thepdfnumber.sty, thepdfnumber.pdf, thepdfnumber.ins, thepdfnumber.drv,
%% thepdfnumber-test1.tex, thepdfnumber-test2.tex,
%% thepdfnumber-test3.tex.
%%
\catcode`\{=1
\catcode`\}=2
\catcode`\#=6
\catcode`\@=11
\errorcontextlines=10000 %
\def\msg#{\immediate\write16}
\def\space{ }
\begingroup\expandafter\expandafter\expandafter\endgroup
\expandafter\ifx\csname RequirePackage\endcsname\relax
\input thepdfnumber.sty\relax
\else
\RequirePackage{thepdfnumber}[2011/11/24]%
\fi
\def\Test#1#2{%
\def\TestExpected{#2}%
\edef\TestExpected{\TestExpected}%
\expandafter\expandafter\expandafter\def
\expandafter\expandafter\expandafter\TestResult
\expandafter\expandafter\expandafter{%
\TestCommand{#1}%
}%
\begingroup
\toks0\expandafter{\TestResult}%
\toks2\expandafter{\TestExpected}%
\ifx\TestResult\TestExpected
\msg{* OK: #1 => \the\toks0}%
\else
\errmessage{FAILED: #1 => \the\toks0\space(\the\toks2)}%
\fi
\endgroup
}
\let\thepdfnumber@ErrorUnexpectedEnd\relax
\let\thepdfnumber@ErrorInvalidToken\relax
\catcode`\~=13 %
\def\ThPdNu@Temp#1{%
\begingroup
\lccode`\~=`#1 %
\lowercase{\endgroup
\edef~%
}{\string#1}%
\catcode`#1=13 %
}
\ThPdNu@Temp{.}
\ThPdNu@Temp{-}
\ThPdNu@Temp{+}
\let\TestCommand\thepdfnumber
\Test{0}{0}
\Test{1}{1}
\Test{23}{23}
\Test{0045}{45}
\Test{4500}{4500}
\Test{-0}{0}
\Test{-1}{-1}
\Test{-00002}{-2}
\Test{-010203}{-10203}
\Test{+0}{0}
\Test{+123}{123}
\Test{+-4}{-4}
\Test{+-+-4}{4}
\Test{++--++--++4}{4}
\Test{+++---+++---+++---4}{-4}
\Test{.}{0}
\Test{0.}{0}
\Test{.0}{0}
\Test{0.}{0}
\Test{-.}{0}
\Test{-0.}{0}
\Test{-.0}{0}
\Test{-0.}{0}
\Test{010.020}{10.02}
\Test{123.456}{123.456}
\Test{12.}{12}
\Test{.123}{.123}
\Test{.0001}{.0001}
\Test{.00100}{.001}
\Test{.12003400560078009}{.12003400560078009}
\Test{-.12003400560078009}{-.12003400560078009}
\Test{04.0500000}{4.05}
\Test{}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{+}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{-}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{a}{0\thepdfnumber@ErrorInvalidToken}
\Test{0x1}{0\thepdfnumber@ErrorInvalidToken}
\Test{4x56}{4\thepdfnumber@ErrorInvalidToken}
\Test{012,34}{12\thepdfnumber@ErrorInvalidToken}
\Test{0.12x4}{.12\thepdfnumber@ErrorInvalidToken}
\let\TestCommand\thepdfnumberNormZeroOne
\Test{0}{0}
\Test{1}{1}
\Test{23}{1}
\Test{12}{1}
\Test{10}{1}
\Test{0045}{1}
\Test{001}{1}
\Test{-0}{0}
\Test{-1}{0}
\Test{-01}{0}
\Test{-4}{0}
\Test{+-0}{0}
\Test{+-+-1}{1}
\Test{++--++--++1}{1}
\Test{+++---+++---+++---1}{0}
\Test{.}{0}
\Test{0.}{0}
\Test{.0}{0}
\Test{0.}{0}
\Test{-.}{0}
\Test{-0.}{0}
\Test{-.0}{0}
\Test{-0.}{0}
\Test{010.020}{1}
\Test{123.456}{1}
\Test{12.}{1}
\Test{.123}{.123}
\Test{.0001}{.0001}
\Test{.00100}{.001}
\Test{.12003400560078009}{.12003400560078009}
\Test{-.12003400560078009}{0}
\Test{04.0500000}{1}
\Test{0.1200340056}{.1200340056}
\Test{1.05}{1}
\Test{}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{+}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{-}{0\thepdfnumber@ErrorUnexpectedEnd}
\Test{a}{0\thepdfnumber@ErrorInvalidToken}
\Test{0x1}{0\thepdfnumber@ErrorInvalidToken}
\Test{4x56}{1}
\Test{012,34}{1}
\Test{.012x4}{.012\thepdfnumber@ErrorInvalidToken}
\csname @@end\endcsname\end
\endinput
%%
%% End of file `thepdfnumber-test3.tex'.