Files
NameSort/test/Test.cmd
Aaron Helton 618647d738 Added another set of testing files
These test for if the alphabetical sort is case-insensitive, which it should be. It appears that the program currently fails this test. Recommend a bugfix branch for this.
2019-10-23 21:45:35 -04:00

15 lines
388 B
Batchfile

echo off
SET OUTPUT="output.txt"
SET OUTPUT2="output2.txt"
if exist %OUTPUT% del /f %OUTPUT%
NameSort.exe "Sort Me.txt" > %OUTPUT%
fc %OUTPUT% "Sorted.txt"
if %errorlevel% EQU 0 (echo "Success") else ( echo "Failure")
if exist %OUTPUT2% del /f %OUTPUT2%
NameSort.exe "Sort Me 2.txt" > %OUTPUT2%
fc %OUTPUT2% "Sorted 2.txt"
if %errorlevel% EQU 0 (echo "Success") else ( echo "Failure")