echo "MAXAB TEST" # specify the AUTOMATED TEST echo "Path 1 : 1-3-4" # specify the TEST CASE (for LEFT path) echo "Expect : max=2" # predict the result of the computation echo "1 2" | maxab -debug # feed (pipe) the a, b input to maxab (and turn ON debug) echo "" # extra line echo "Path 2 : 1-2-4" # repeat for RIGHT path echo "Expect : max=2" echo "2 1" | maxab -debug echo "" # run this AUTOMATED TEST in Unix: maxab.bat # resultant output: # MAXAB TEST # Path 1 : 1-3-4 # Expect : max=2 # Path : 1-3-4- # Actual : max=2 # Maximum:2 # # Path 2 : 1-2-4 # Expect : max=2 # Path : 1-2-4- # Actual : max=2 # Maximum:2