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)
|
||||
)
|
||||
|
||||
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!'
|
||||
|
|
Loading…
Reference in New Issue