diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 18:54:02 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 18:54:02 -0600 |
| commit | 947e248e0bbb7e329845a78acf64ea5399f9366f (patch) | |
| tree | f43b77d9d0a72f28b2179aff4cddbe207d1d7c4c | |
| parent | b1036586d471483db085fa8e04651caaa80f2447 (diff) | |
add test for mixed args
| -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 9b6493d..96a248e 100644 --- a/test/problem-6.bats +++ b/test/problem-6.bats @@ -30,3 +30,9 @@ load test_helper assert_failure $'error: "oops" is not a number\nerror: "invalid" is not a number' } + +@test "invoke with mixed numeric and non-numeric" { + run problem-6.sh "oops" 10 "invalid" + + assert_failure $'error: "oops" is not a number\nerror: "invalid" is not a number' +} |
