mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-02-23 10:16:00 -05:00
While working on the Kotlin implementation, I have found a few documentation mistakes in the other language implementations. These have been accumulating in the `kotlin` branch. I migrated these changes back into the released code for now, because I don't want to wait until Kotlin is ready.
30 lines
699 B
Batchfile
30 lines
699 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 4.9e-15 temp\c_check.txt dotnet\csharp_test\csharp_check.txt
|
|
if errorlevel 1 (exit /b 1)
|
|
|
|
!CTESTEXE! diff 6.3e-15 temp\c_check.txt temp\k_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
|