From 94ee3596a7d9c58cfdbd505ce26f070a8829af43 Mon Sep 17 00:00:00 2001 From: mo Date: Sat, 25 May 2019 19:00:19 -0600 Subject: extract function to validate input --- test/problem-6.bats | 4 ++-- 1 file 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" { -- cgit v1.2.3