summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex')
-rw-r--r--Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex165
1 files changed, 165 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex b/Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex
new file mode 100644
index 00000000000..80f824361fc
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/oberdiek/test/fibnum-test-calc.tex
@@ -0,0 +1,165 @@
+%%
+%% This is file `fibnum-test-calc.tex',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% fibnum.dtx (with options: `test-calc')
+%%
+%% This is a generated file.
+%%
+%% Project: fibnum
+%% Version: 2012/04/08 v1.0
+%%
+%% Copyright (C) 2012 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 fibnum.dtx
+%% and the derived files
+%% fibnum.sty, fibnum.pdf, fibnum.ins, fibnum.drv, fibnum.bib,
+%% fibnum-test1.tex, fibnum-test-calc.tex.
+%%
+\catcode`\{=1 %
+\catcode`\}=2 %
+\catcode`\#=6 %
+\catcode`\@=11 %
+\begingroup\expandafter\expandafter\expandafter\endgroup
+\expandafter\ifx\csname RequirePackage\endcsname\relax
+ \input fibnum.sty\relax
+\else
+ \RequirePackage{fibnum}[2012/04/08]%
+\fi
+\def\TestSet{%
+ \test{0}{0}%
+ \test{1}{1}%
+ \test{2}{1}%
+ \test{3}{2}%
+ \test{4}{3}%
+ \test{5}{5}%
+ \test{6}{8}%
+ \test{7}{13}%
+ \test{8}{21}%
+ \test{9}{34}%
+ \test{10}{55}%
+ \test{11}{89}%
+ \test{12}{144}%
+ \test{13}{233}%
+ \test{14}{377}%
+ \test{15}{610}%
+ \test{16}{987}%
+ \test{17}{1597}%
+ \test{18}{2584}%
+ \test{19}{4181}%
+ \test{20}{6765}%
+ \test{21}{10946}%
+ \test{22}{17711}%
+ \test{23}{28657}%
+ \test{24}{46368}%
+ \test{25}{75025}%
+ \test{26}{121393}%
+ \test{27}{196418}%
+ \test{28}{317811}%
+ \test{29}{514229}%
+ \test{30}{832040}%
+ \test{31}{1346269}%
+ \test{32}{2178309}%
+ \test{33}{3524578}%
+ \test{34}{5702887}%
+ \test{35}{9227465}%
+ \test{36}{14930352}%
+ \test{37}{24157817}%
+ \test{38}{39088169}%
+ \test{39}{63245986}%
+ \test{40}{102334155}%
+ \test{41}{165580141}%
+ \test{42}{267914296}%
+ \test{43}{433494437}%
+ \test{44}{701408733}%
+ \test{45}{1134903170}%
+ \test{46}{1836311903}%
+ \test{47}{2971215073}%
+ \test{48}{4807526976}%
+ \test{49}{7778742049}%
+ \test{50}{12586269025}%
+ \test{51}{20365011074}%
+ \test{52}{32951280099}%
+ \test{53}{53316291173}%
+ \test{54}{86267571272}%
+ \test{55}{139583862445}%
+ \test{56}{225851433717}%
+ \test{57}{365435296162}%
+ \test{58}{591286729879}%
+ \test{59}{956722026041}%
+ \test{60}{1548008755920}%
+ \test{61}{2504730781961}%
+ \test{62}{4052739537881}%
+ \test{63}{6557470319842}%
+ \test{64}{10610209857723}%
+ \test{65}{17167680177565}%
+ \test{66}{27777890035288}%
+ \test{67}{44945570212853}%
+ \test{68}{72723460248141}%
+ \test{69}{117669030460994}%
+ \test{70}{190392490709135}%
+ \test{71}{308061521170129}%
+ \test{72}{498454011879264}%
+ \test{73}{806515533049393}%
+}
+\def\msg#{\immediate\write16}
+\def\test#1#2{%
+ \TestAux{#1}{#2}%
+ \ifnum#1=0 %
+ \else
+ \ifodd#1 %
+ \TestAux{-#1}{#2}%
+ \else
+ \TestAux{-#1}{-#2}%
+ \fi
+ \fi
+}
+\def\TestAux#1#2{%
+ \def\Expected{#2}%
+ \expandafter\expandafter\expandafter\def
+ \expandafter\expandafter\expandafter\Result
+ \expandafter\expandafter\expandafter{%
+ \fibnum{#1}%
+ }%
+ \ltx@onelevel@sanitize\Result
+ \ifx\Result\Expected
+ \msg{* #1: ok.}%
+ \else
+ \msg{! fib(#1) = #2}%
+ \errmessage{fib(#1) <> \Result}%
+ \fi
+}
+\TestSet
+\setbox0=\hbox{%
+ \msg{* PreCalc{73}}%
+ \fibnumPreCalc{73}%
+}
+\ifdim\wd0=0pt
+\else
+ \errmessage{Unwanted stuff in PreCalc}%
+\fi
+\TestSet
+\csname @@end\endcsname\end
+\endinput
+%%
+%% End of file `fibnum-test-calc.tex'.