X-Git-Url: https://s3miclassical.com/gitweb/?p=strong_simulation_stabilizer_rank.git;a=blobdiff_plain;f=test2.bash;h=e6b3122464520df26dd6603db7924aba99a7efc6;hp=281422b6fec9ef69fab18fc533e0f798661403c5;hb=bce2108bbb4eada26cfe1561a5f0b06528ab470c;hpb=2bcc6f0ade1d894dcb6fd0122911fdd41fe459a6 diff --git a/test2.bash b/test2.bash index 281422b..e6b3122 100644 --- a/test2.bash +++ b/test2.bash @@ -31,12 +31,18 @@ bre=$(echo "$b" | cut -f 1 -d " " | cut -c 1-5); bim=$(echo "$b" | cut -f 3 -d " " | cut -c 1-5); echo "$i: $are $aimsign $aim and $bre $bimsign $bim" rediff=$( printf 'sqrt((%f - %f)^2)\n' "$are" "$bre" | bc -l ) imdiff=$( printf 'sqrt((%f - %f)^2)\n' "$aim" "$bim" | bc -l ) -if (( $(echo "$rediff < $threshold" |bc -l) )) && (( $(echo "$imdiff < $threshold" |bc -l) )) && [ "$aimsign" == "$bimsign" ] +if (( $(echo "$rediff < $threshold" |bc -l) )) && (( $(echo "$imdiff < $threshold" |bc -l) )) then - continue + if (( $(echo "$bim < $threshold" |bc -l) )) || [ "$aimsign" == "$bimsign" ] + then + continue + else + echo "NOTE EQUAL!" + exit + fi else echo "NOT EQUAL!" - break + exit fi done echo "Test passed!"