summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 18:54:02 -0600
committermo <mo.khan@gmail.com>2019-05-25 18:54:02 -0600
commit947e248e0bbb7e329845a78acf64ea5399f9366f (patch)
treef43b77d9d0a72f28b2179aff4cddbe207d1d7c4c /test
parentb1036586d471483db085fa8e04651caaa80f2447 (diff)
add test for mixed args
Diffstat (limited to 'test')
-rw-r--r--test/problem-6.bats6
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'
+}