is-probably-even/maybe

14 lines
349 B
Plaintext
Raw Normal View History

#!/usr/bin/env bash
declare -A colors=(
[red]=$(tput setaf 1) [green]=$(tput setaf 2)
[yellow]=$(tput setaf 3) [reset]=$(tput sgr0)
)
for num in {1..1000}; do
printf '%s[>] Test %d/1000... ✓ passed.%s\n' "${colors[green]}" "$num" "${colors[reset]}"
done
printf '%sAll tests successful!%s\n' "${colors[green]}" "${colors[reset]}"
return 0