Skip to content

Commit

Permalink
Luhn: Update test of non-digit (#496)
Browse files Browse the repository at this point in the history
* Luhn: Update test of non-digit

While implementing these tests for Rust I found that the final test was
not well written (my fault!)

exercism/rust#247

I added the alphabetical character to an already-invalid string. So the
test doesn't show anything useful.

Instead the test should show that a known-valid string is made invalid
by the inclusion of a non-digit
  • Loading branch information
IanWhitney authored and Insti committed Jan 15, 2017
1 parent 20b8677 commit 41b9fe8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/luhn/canonical-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"expected": false
},
{
"description": "strings that contain non-digits are not valid",
"input": "827a 1232 7352 0569",
"description": "valid strings with a non-digit added become invalid",
"input": "046a 454 286",
"expected": false
}
]
Expand Down

0 comments on commit 41b9fe8

Please sign in to comment.