summaryrefslogtreecommitdiff
path: root/test/problem-6.bats
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2019-09-07 13:37:06 -0600
committermo khan <mo@mokhan.ca>2019-09-07 13:37:06 -0600
commit07454039c7ed4384a679325e9cd75c1faaceb43d (patch)
treedf98d7801cd164303db2e69f9f791eea29d85f73 /test/problem-6.bats
parent6be22260797400ace8fa1ff36275c49ede9d4f25 (diff)
dump old assignment
Diffstat (limited to 'test/problem-6.bats')
-rw-r--r--test/problem-6.bats26
1 files changed, 4 insertions, 22 deletions
diff --git a/test/problem-6.bats b/test/problem-6.bats
index acb685a..ff5ceb4 100644
--- a/test/problem-6.bats
+++ b/test/problem-6.bats
@@ -8,31 +8,13 @@ load test_helper
}
@test "invoke with a single integer" {
- run problem-6.sh 2
+ run echo 'hello'
- assert_success $'squares: 4\nsum: 2'
-}
-
-@test "invoke with multiple integers" {
- run problem-6.sh 1 2 3 4 5 6 7 8 9 10
-
- assert_success $'squares: 1 4 9 16 25 36 49 64 81 100\nsum: 55'
+ assert_success $'hello'
}
@test "invoke with single non-numeric" {
- run problem-6.sh "oops"
-
- assert_failure $'error: "oops" is not a number'
-}
-
-@test "invoke with multiple non-numeric" {
- run problem-6.sh "first" "second"
-
- assert_failure $'error: "first" is not a number\nerror: "second" is not a number'
-}
-
-@test "invoke with mixed numeric and non-numeric" {
- run problem-6.sh "oops" 10 "invalid"
+ run rm blah
- assert_failure $'error: "oops" is not a number\nerror: "invalid" is not a number'
+ assert_failure $'rm: blah: No such file or directory'
}