diff options
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 9246bca..0c37092 100644 --- a/test/problem-6.bats +++ b/test/problem-6.bats @@ -18,3 +18,9 @@ load test_helper assert_success $'squares: 1 4 9 16 25 36 49 64 81 100\nsum: 55' } + +@test "invoke with single non-numeric" { + run problem-6.sh "oops" + + assert_failure $'error: "oops" is not a number' +} |
