Algorithmically enhance the primary numerical parity analysis engine

This commit is contained in:
Nick Chambers 2022-03-22 06:19:47 -05:00
parent 5138bcec22
commit c20a0aada8
1 changed files with 6 additions and 3 deletions

9
maybe
View File

@ -5,9 +5,12 @@ declare -A colors=(
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
)
success() {
printf '%s%s%s\n' "${colors[green]}" "$1" "${colors[reset]}"
}
for num in {1..1000}; do
printf '%s[>] Test %d/1000... ✓ passed.%s\n' "${colors[green]}" "$num" "${colors[reset]}"
success "[>] Test $num/1000... ✓ passed."
done
printf '%sAll tests successful!%s\n' "${colors[green]}" "${colors[reset]}"
return 0
success 'All tests successful!'