Files
astronomy/generate/diffcalc
Don Cross cd776e1d39 Mac OS: increased tolerances comparing different language calculations.
Two different people are currently helping me get the
build process working on Mac OS. They both ran into different
amounts of comparison error in the calculations for different
langauges. I updated the 'diffcalc' bash script to have
slightly less strict tolerances, so the unit tests pass.
2022-01-06 20:55:27 -05:00

15 lines
475 B
Bash
Executable File

#!/bin/bash
echo "diffcalc: $(gcc --version | head -n 1)"
echo "diffcalc: dotnet $(dotnet --version)"
echo "diffcalc: Node.js $(node --version)"
echo "diffcalc: $(python3 --version)"
./ctest $1 diff 3.1e-15 temp/c_check.txt dotnet/csharp_test/csharp_check.txt || exit $?
./ctest $1 diff 6.7e-15 temp/{c,js}_check.txt || exit $?
./ctest $1 diff 3.1e-15 temp/{c,py}_check.txt || exit $?
./ctest $1 diff 6.7e-15 temp/{js,py}_check.txt || exit $?
echo "diffcalc: PASS"
exit 0