fixed two typos
[strong_simulation_gauss_sum_rank.git] / test.bash
index 3e5d698c6c609db0d32fa6be1c6b758fb288d0c6..f8aeca1e265ab375e62127f028c54b4e79c11f50 100644 (file)
--- a/test.bash
+++ b/test.bash
@@ -12,8 +12,9 @@ numTgates=4
 
 numPaulis=1 # we want numPaulis to be 1 for the loop below
 
-numruns=1000
+numruns=20
 
+echo "Starting test of $numruns random Pauli expectation values..."
 for i in $(seq 1 $numruns)
 do
   sleep 1;a=$(stdbuf -oL ./randommultipleinputPaulis $numqubits $numTgates $numPaulis > inputPaulis.txt && $gausssumcode < inputPaulis.txt | tail -1)
@@ -24,6 +25,7 @@ do
     continue
   else
     echo "NOT EQUAL!"
-    break
+    exit
   fi
 done
+echo "Test passed!"