Files
astronomy/generate/diffcalc
Don Cross c9054e25e3 Diffcalc C/Kotlin: relaxed tolerances.
The GitHub Actions test comparing C and Kotlin
output failed for the Mac OS platform.
The test failed locally on my Windows 10 system
for the same reason.
Relaxed the constraints on both so they will pass again.
2022-03-31 15:45:15 -04:00

16 lines
531 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 4.9e-15 temp/c_check.txt dotnet/csharp_test/csharp_check.txt || exit $?
./ctest $1 diff 6.7e-15 temp/{c,k}_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