diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 18:53:29 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 18:53:29 -0600 |
| commit | b1036586d471483db085fa8e04651caaa80f2447 (patch) | |
| tree | b749e826d738d9470a7c68ad7d4119dbfd651da1 /test | |
| parent | 1c23ff894b1413b774f3d805785fd1fdc88ecd09 (diff) | |
validate all 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 0c37092..9b6493d 100644 --- a/test/problem-6.bats +++ b/test/problem-6.bats @@ -24,3 +24,9 @@ load test_helper assert_failure $'error: "oops" is not a number' } + +@test "invoke with multiple non-numeric" { + run problem-6.sh "oops" "invalid" + + assert_failure $'error: "oops" is not a number\nerror: "invalid" is not a number' +} |
