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",
|
"description": "Determine if a number might be positive",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "maybe"
|
"test": "./maybe"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|
Loading…
Reference in New Issue