mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-02-06 21:51:55 -05:00
It turns out different Node.js versions do math differently, which caused a Travis CI build failure. Scale topocentric distance the same way I scale heliocentric distance. Adjusted diffcalc bash script and diffcalc.bat Windows batch file accordingly. The differ now prints the final "score" so I'm less likely to make a mistake spotting the correct maximum difference. Removed unused variable in ctest.c DiffLine(): maxdiff.
27 lines
608 B
Batchfile
27 lines
608 B
Batchfile
@echo off
|
|
setlocal EnableDelayedExpansion
|
|
set CTESTEXE=bin\ctest.exe
|
|
|
|
if not exist !CTESTEXE! (
|
|
echo.FATAL[diffcalc]: executable does not exist: !CTESTEXE!
|
|
exit /b 1
|
|
)
|
|
|
|
echo.Diffing calculations.
|
|
|
|
!CTESTEXE! diff 0.0 temp\c_check.txt dotnet\csharp_test\csharp_check.txt
|
|
if errorlevel 1 (exit /b 1)
|
|
|
|
!CTESTEXE! diff 5.6e-15 temp\c_check.txt temp\js_check.txt
|
|
if errorlevel 1 (exit /b 1)
|
|
|
|
!CTESTEXE! diff 1.6e-16 temp\c_check.txt temp\py_check.txt
|
|
if errorlevel 1 (exit /b 1)
|
|
|
|
!CTESTEXE! diff 5.6e-15 temp\js_check.txt temp\py_check.txt
|
|
if errorlevel 1 (exit /b 1)
|
|
|
|
echo.diffcalc: PASS
|
|
echo.
|
|
exit /b 0
|