diff options
author | Gavin Howard <gavin@yzena.com> | 2021-09-28 11:47:03 -0600 |
---|---|---|
committer | Gavin Howard <gavin@yzena.com> | 2021-09-28 11:48:59 -0600 |
commit | 245917b41d4b1d3b238efcd97ba48fb6d6b367c8 (patch) | |
tree | 03bc74d147e1f94ed8af69543f895676e1c567b9 | |
parent | b120cd3dd6b17faa6ee45af2fba814743313927c (diff) | |
download | bc-245917b41d4b1d3b238efcd97ba48fb6d6b367c8.tar.gz |
Add the leading zero test to the Windows tests
Signed-off-by: Gavin Howard <gavin@yzena.com>
-rw-r--r-- | vs/tests/tests_bc.bat | 24 |
1 files changed, 23 insertions, 1 deletions
diff --git a/vs/tests/tests_bc.bat b/vs/tests/tests_bc.bat index 047a189c..5f01f82f 100644 --- a/vs/tests/tests_bc.bat +++ b/vs/tests/tests_bc.bat @@ -58,6 +58,7 @@ subtract trunc vars void +leadingzero ) do ( if exist "%scripts%\%%i.txt" ( "%bc%" "%args%" < "%scripts%\%%i.txt" > "%%i_results.txt" @@ -79,4 +80,25 @@ if exist "%scripts%\%%i.txt" ( echo FAIL_NOT_EXIST: %%i goto :eof ) -)
\ No newline at end of file +) + +if exist "%scripts%\leadingzero.txt" ( + "%bc%" "%args%" -z < "%scripts%\leadingzero.txt" > "leadingzero_results.txt" + + if errorlevel 1 ( + echo FAIL_RUNTIME: %scripts%\leadingzero.txt + goto :eof + ) + + fc.exe "%scripts%\leadingzero_results.txt" "leadingzero_results.txt" > NUL + + if errorlevel 1 ( + echo FAIL_RESULTS: %scripts%\leadingzero.txt + goto :eof + ) + + echo PASS: %%i +) else ( + echo FAIL_NOT_EXIST: %scripts%\leadingzero.txt" + goto :eof +) |