algorithms

Algorithm implementations
git clone git://git.laack.co/algorithms.git
Log | Files | Refs | README

run.sh (290B)


      1 
      2 g++ -std=c++20 -Wall -Wextra ./*.cpp -o a.out || exit 1
      3 for input in tests/*.in; do
      4     expected="${input%.in}.out"
      5     echo "$input"
      6     ./a.out < "$input" > res.txt
      7     if diff -u "$expected" res.txt; then
      8         echo "PASS"
      9     else
     10         echo "FAIL"
     11     fi
     12 done
     13 rm -f res.txt a.out