Apply a comprehensive test suite to the primary numerical parity analysis engine
This commit is contained in:
parent
672da95118
commit
5138bcec22
|
@ -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
|
|
@ -4,7 +4,7 @@
|
|||
"description": "Determine if a number might be positive",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "maybe"
|
||||
"test": "./maybe"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Loading…
Reference in New Issue