summaryrefslogtreecommitdiff
path: root/test/problem-6.bats
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2019-05-25 18:53:29 -0600
committermo <mo.khan@gmail.com>2019-05-25 18:53:29 -0600
commitb1036586d471483db085fa8e04651caaa80f2447 (patch)
treeb749e826d738d9470a7c68ad7d4119dbfd651da1 /test/problem-6.bats
parent1c23ff894b1413b774f3d805785fd1fdc88ecd09 (diff)
validate all input
Diffstat (limited to 'test/problem-6.bats')
-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 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'
+}