Apply a comprehensive test suite to the primary numerical parity analysis engine

This commit is contained in:
Nick Chambers 2022-03-22 05:46:17 -05:00
parent 672da95118
commit 5138bcec22
2 changed files with 14 additions and 1 deletions

13
maybe Executable file
View File

@ -0,0 +1,13 @@
#!/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

View File

@ -4,7 +4,7 @@
"description": "Determine if a number might be positive",
"main": "index.js",
"scripts": {
"test": "maybe"
"test": "./maybe"
},
"repository": {
"type": "git",