Algorithmically enhance the primary numerical parity analysis engine
This commit is contained in:
parent
5138bcec22
commit
c20a0aada8
9
maybe
9
maybe
|
@ -5,9 +5,12 @@ declare -A colors=(
|
||||||
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
|
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
success() {
|
||||||
|
printf '%s%s%s\n' "${colors[green]}" "$1" "${colors[reset]}"
|
||||||
|
}
|
||||||
|
|
||||||
for num in {1..1000}; do
|
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
|
done
|
||||||
|
|
||||||
printf '%sAll tests successful!%s\n' "${colors[green]}" "${colors[reset]}"
|
success 'All tests successful!'
|
||||||
return 0
|
|
||||||
|
|
Loading…
Reference in New Issue