mirror of
https://github.com/cosinekitty/astronomy.git
synced 2025-12-30 11:09:33 -05:00
A slight difference (7.9e-17) in calculation now exists between the C and C# horizontal angle calculations on Windows. This is not surprising because the atan2() function is known to return slightly different values on other compilers/platforms. Adjusted the tolerance for this tiny amount of roundoff discrepancy.
27 lines
612 B
Batchfile
27 lines
612 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 7.9e-17 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
|