echo "Here is a set of tests of the modular arithmetic routines. Before" echo "each execution output is a copy of the input file. All of these" echo "results have been compared against the output of the Unix 'dc' (desktop" echo "calculator) program which can handle arbitrary precision math. There" echo "was always agreement." echo "" echo "" echo "---------- arith n0 ----------" echo Should fail because input file is empty. echo echo "-begin input file-" cat n0 echo "-end input file-" echo "" arith n0 echo "" echo "" echo "---------- arith n1 ----------" echo Simple test using very small numbers. echo echo "-begin input file-" cat n1 echo "-end input file-" echo "" arith n1 echo "" echo "" echo "---------- arith n2 ----------" echo Another simple test. Note value of 100 - 200. echo echo "-begin input file-" cat n2 echo "-end input file-" echo "" arith n2 echo "" echo "" echo "---------- arith n3 ----------" echo Test where one of the input numbers equals the modulus, which echo means that its value ends up being zero. Serves as a good "unity" echo test for addition and subtraction as well. echo echo "-begin input file-" cat n3 echo "-end input file-" echo "" arith n3 echo "" echo "" echo "---------- arith n4 ----------" echo Fairly large numbers. echo echo "-begin input file-" cat n4 echo "-end input file-" echo "" arith n4 echo "" echo "" echo "---------- arith n5 ----------" echo "-begin input file-" cat n5 echo "-end input file-" echo "" arith n5 echo "" echo "" echo "---------- arith n6 ----------" echo "-begin input file-" cat n6 echo "-end input file-" echo "" arith n6 echo "" echo "" echo "---------- arith n7 ----------" echo "-begin input file-" cat n7 echo "-end input file-" echo "" arith n7