From 41b9fe8e9c2513f4443e1cad1f286f53b2720ce9 Mon Sep 17 00:00:00 2001 From: Ian Whitney Date: Sun, 15 Jan 2017 10:40:30 -0600 Subject: [PATCH] Luhn: Update test of non-digit (#496) * Luhn: Update test of non-digit While implementing these tests for Rust I found that the final test was not well written (my fault!) https://github.com/exercism/xrust/pull/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 --- exercises/luhn/canonical-data.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/exercises/luhn/canonical-data.json b/exercises/luhn/canonical-data.json index 87e2c236a5..0da43846c0 100644 --- a/exercises/luhn/canonical-data.json +++ b/exercises/luhn/canonical-data.json @@ -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 } ]