Skip to content

Commit

Permalink
test: update Darts exercise test case (exercism#708)
Browse files Browse the repository at this point in the history
I was able to pass this exercise using incorrect `[[:digit:]]` regular
expression that only checked that an argument includes a number so I've
decided to slightly update the test case for a non-numeric argument.
  • Loading branch information
kirillmorozov authored Sep 23, 2024
1 parent 8ee7dc4 commit 8d94f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/practice/darts/darts.bats
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ load bats-extra

@test "invalid args: second arg non-numeric" {
[[ $BATS_RUN_SKIPPED == "true" ]] || skip
run bash darts.sh 10 bar
run bash darts.sh 10 bar5
assert_failure
assert_output # there is _some_ output
}

0 comments on commit 8d94f5f

Please sign in to comment.