diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 18:51:39 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 18:51:39 -0600 |
| commit | 1c23ff894b1413b774f3d805785fd1fdc88ecd09 (patch) | |
| tree | 749b9339dfcb86cafd2ff654ead7ec39d7033725 /test | |
| parent | 6e26603570b4034ecdf3c52bbcc343c6d81bfd9a (diff) | |
validate input
Diffstat (limited to 'test')
| -rw-r--r-- | test/problem-6.bats | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/problem-6.bats b/test/problem-6.bats index 9246bca..0c37092 100644 --- a/test/problem-6.bats +++ b/test/problem-6.bats @@ -18,3 +18,9 @@ load test_helper assert_success $'squares: 1 4 9 16 25 36 49 64 81 100\nsum: 55' } + +@test "invoke with single non-numeric" { + run problem-6.sh "oops" + + assert_failure $'error: "oops" is not a number' +} |
