diff options
| author | mo <mo.khan@gmail.com> | 2019-05-25 19:00:19 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2019-05-25 19:00:19 -0600 |
| commit | 94ee3596a7d9c58cfdbd505ce26f070a8829af43 (patch) | |
| tree | 6db0e179813cab1122bcfcb03454d965ff49a8b7 | |
| parent | 947e248e0bbb7e329845a78acf64ea5399f9366f (diff) | |
extract function to validate input
| -rw-r--r-- | test/problem-6.bats | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/problem-6.bats b/test/problem-6.bats index 96a248e..acb685a 100644 --- a/test/problem-6.bats +++ b/test/problem-6.bats @@ -26,9 +26,9 @@ load test_helper } @test "invoke with multiple non-numeric" { - run problem-6.sh "oops" "invalid" + run problem-6.sh "first" "second" - assert_failure $'error: "oops" is not a number\nerror: "invalid" is not a number' + assert_failure $'error: "first" is not a number\nerror: "second" is not a number' } @test "invoke with mixed numeric and non-numeric" { |
